| Class TDirectoryEditor (unit AisIni) |
TComponentEditor
Published declarations
| Constructors |
constructor Create(AComponent: TComponent; ADesigner: TFormDesigner);=========================================================================== Function/Proc Name: Create(AComponent: TComponent; ADesigner: TFormDesigner); Description: Override the Create method.
| Functions |
destructor Destroy;
procedure Edit;| Properties |
| Events |
| Variables |
DirectoryDlg : TDirForm;
FComponent : TComponent;| Constructors |
constructor Create(AComponent: TComponent; ADesigner: TFormDesigner);Protected declarations
=========================================================================== Function/Proc Name: Create(AComponent: TComponent; ADesigner: TFormDesigner); Description: Override the Create method. This allows us to grab a reference to the instance of the Component being edited. It also allows us to allocate the Directory Edit Dialog. Notes: We make sure to call the inherited Create method. Calling Convention: AComponent is the component being edited. ADesigner is the Designer. Returns : None ===========================================================================
| Functions |
destructor Destroy;=========================================================================== Function/Proc Name: Destroy Description: Override the Destroy method. Here is where we free the Directory Edit Dialog. Notes: Calling Convention: Returns : None ===========================================================================
procedure Edit;=========================================================================== Function/Proc Name: Edit Description: This method is called when the user double-clicks on the component. Here is where we display the Dialog. After we display the Dialog with the ShowModal, we check to see if the user has changed any of the text if so, we change the proper database and write the newly entered directory to the INI. Notes: We are able to manipulate the Component currently being edited because we got a handle to it during Create. To use the Object we need to type-cast it TAisIni(). Calling Convention: Returns : None ===========================================================================}
| Properties |
| Events |
| Variables |
DirectoryDlg : TDirForm;
FComponent : TComponent;