RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
FileCtrl.TSelectDirExtOpt Enumeration

Used to specify the type of browse dialog box to display, when calling the SelectDirectory function.

Pascal
TSelectDirExtOpt = (
  sdNewFolder,
  sdShowEdit,
  sdShowShares,
  sdNewUI,
  sdShowFiles,
  sdValidateDir
);
C++
enum TSelectDirExtOpt {
  sdNewFolder,
  sdShowEdit,
  sdShowShares,
  sdNewUI,
  sdShowFiles,
  sdValidateDir
};

Use a constant of type TSelectDirExtOpt to enable an option in the Options parameter of the SelectDirectory function. The Options parameter specifies the type of browse dialog box to create.  

The possible values for a constant of type TSelectDirExtOpt are given in the following table.

Option 
Meaning 
sdNewFolder 
Displays the Make New Folder button, when using the sdNewUI option. 
sdShowEdit 
Display an edit box containing the currently selected folder/file. This also allows typing the name of the folder/file to select. 
sdShowShares 
Shareable resources on remote systems are also displayed inside the browse dialog box. This automatically enables the option sdNewUI
sdNewUI 
Use the new type of dialog, that is sizeable and includes a Make a New Folder button. The dialog also allows dragging and dropping and using the context menu on either folders or files. 
sdShowFiles 
The browse dialog box also displays files. 
sdValidateDir 
Validates the name of the folder/file inserted into the edit box, when using the bifEditBox option. The validation triggers an event of type TBrowseForFolderCallbackEvent. 

 

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!