    |

|
White Papers -
Articles
|
|
"Creating
Synergistic Components with Delphi"
|
|
James Callan
- KOG Webzine (Page 6)
|
Refining the Requirements
Before proceeding we should better define
the requirements for our disembodied button pusher. First, only one component should
be used. Second, the component must leave all button events available for the application
programmer. Third, it should be possible to display a macro once recorded. The programmer's
interface to the macro recorder could include three methods (BeginMacro, EndMacro
and Playback) that permit macro definition and playback. Two published properties
(Recording and Macro) could also be used to determine when a macro is being recorded
and to display recorded macros.
Given the refined requirements, it is now possible to complete a design. Macros will
be recorded into a string variable so that it can be easily displayed. We will use
a simple boolean variable to ascertain when macros are being recorded. We will assume
that forms use static controls. Thus, the application programmer will not be dynamically
creating and deleting new controls on the form as is typical in form designers or
drawing applications. But, some unresolved design issues still remain. |
 
|