TLazarusFileDialogForm.Initialize procedure
Creates and positions child controls on the Lazarus dialog form.
Declaration
procedure Initialize(AKind: TLazFileDialogKind)Arguments
AKind | Dialog kind for the Lazarus dialog form instance. |
Description
Initialize is a procedure used to create and position child controls on the Lazarus dialog form appropriate for the dialog type specified in AKind.
The value in AKind is stored in an internal member in the class instance, and is used to determine the child controls configured and displayed on the Lazarus dialog form. It affects the following:
- ShellTreeView
- ShellListView
- SaveEdit
- FilterComboBox
- ButtonPanel
Initialize creates the ButtonPanel for the Lazarus dialog form, and positions it aligned to the bottom of the form instance. ButtonPanel is configured to display Ok and Cancel buttons, and uses the HandleOkClick and HandleCancelClick methods to respond to the OnClick events for the respective buttons.
Initialize uses the HandleCloseQuery method as the event handler for the OnCloseQuery event.
See also
An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.
