| ImageEn, unit iexFolderTree |
|
TIEOpenFolderDialog
TIEOpenFolderDialog
Declaration
TIEOpenFolderDialog = class(TComponent);
Description
Uses
ShBrowseForFolder to display a modal Windows dialog box for selecting a folder.
This is the same as using
WindowsSelectDirectory
Demo
| Demos\PDF\PDFPrinter\PdfPrinter.dpr |
Example
// Prompt for a folder
IEOpenFolderDialog1.AttachedImageEnIO := ImageEnView1;
If IEOpenFolderDialog1.Execute then
LaunchFolder( IEOpenFolderDialog1.Folder );
Methods and Properties
Properties
| Caption: string; | The caption of the Browse dialog. If unspecified, it defaults to a localized "Select a Folder" |
| Folder: string; | The selected folder of the dialog |
| Options: TIEOpenFolderOptions; | Options of the dialog. Default: [foAllowNewFolder, foDisplayShareable, foValidateFolder, foShowEditBox] |
| RootFolder: string; | The top-most folder. Leave blank to use the Windows default |
Methods
| function Execute(): Boolean; | Show the dialog. Result is True if a folder is selected (fills Folder property) or False if they cancel the dialog |
Events