Inherited from : TOpenDailog and TSaveDialog
unit: ApOpenDlg, ApSaveDlg
Custom versions are available: TApCustomOpenDialog and TApCustomSaveDialog.
TApCtrlQueryEvent = procedure (Sender: TObject; var bAllow : boolean) of object;
This type is used for the new event handlers in this components: OnGoToParent, etc. CanDoThat variable determines whether you can do appropriate action. Setting this variable to False will disable standard response on this button click or other action.
TApOpenDlgControl = ( dcFolderCombo,
dcFolderLabel,
dcSelectionCtrl,
dcOkBtn,
dcCancelBtn,
dcFileName,
dcFileNameLabel,
dcFileType,
dcFileTypeLabel,
dcToolBar );
TApOpenDlgControls = set of TApOpenDlgControl;
These types are used in VisibleControls property to specify wich dialog controls are visible.
Published; protected in custom version
This variable contains all information about side panels of the standard dialog. See TApCustDlgPatams type for details.
For Open/Save dialogs CustDlgParams.CustomForm points to form wich is the replacement for standard selection shell list view when SelectionType property value is stCustom.
Published; protected in custom version
Can be one of the following values : stStandard or stCustom. stStandard value points that standard shell selection control is visible and active. stCustom value specifies that any other Delphi form specified in CustDlgParams.CustomForm property is used as selection control. You can use this property even when your dialog is already visible and active.
Protected
The EditHandle property, which provides access to the dialog’s edit control handle after a call to Execute, can be used in "dialog-time" event handlers. EditHandle is reset to 0 after the dialog is closed.
Published; protected in custom version
Determines the visibility of the file-selection dialog controls.
Public
The handle of the dialog box. Keep in mind that its not the same as TOpenDialog.Handle protected property. DlgHandle property is reset to 0 after the dialog is closed.
Public; protected in custom version
Access this Read-only property to get currently selected folder path in the dialog box.
Public; protected in custom version
Read this property to get currently selected files in the dialog box. The result is in the folowing form:
"file1.txt" "file2.txt" "file3.txt" "file4" ...
Write to this property to set file names you want to be displayed in the filename edit box.
SelectedFilesList : TStrings; RW; use when dialog is visible.
Public; Protected in custom version
Read this property to get currently selected files as TStrings collection. The result has the following form:
file1.txt
file2.txt
file3.txt
...
Write to this property to set file names you want to be displayed in the filename edit box.
no new items.
All the new properties above are "dialog-time".
For all handlers: Published; protected in custom version
Occures when you try to close dialog box by pressing OK button. See VCL Reference for help.
Occures if user presses "Create Folder" tool button.
Occures if user presses "List" tool button.
Occures if user presses "Details" tool button.
Occures if user presses "Desktop" tool button.
Occures if user presses "Up one level" tool button.
Occures if user tries to change selected files in the filename edit box. Set bAllow to False to prevent this change in some sutuations.
General hook procedure. You can hook any message you want directry in this handler.