Vcl.FileCtrl.TSelectDirExtOpt

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

TSelectDirExtOpt = (sdNewFolder, sdShowEdit, sdShowShares, sdNewUI, sdShowFiles,
sdValidateDir);

C++

enum DECLSPEC_DENUM TSelectDirExtOpt : unsigned char { sdNewFolder, sdShowEdit, sdShowShares, sdNewUI, sdShowFiles, sdValidateDir };

Properties

Type Visibility Source Unit Parent
enum public
Vcl.FileCtrl.pas
Vcl.FileCtrl.hpp
Vcl.FileCtrl Vcl.FileCtrl

Description

TSelectDirExtOpt specifies the possible options to customize the Select Directory dialog that SelectDirectory displays.

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 Select Directory 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 the sdNewUI option is enabled.

sdShowEdit

Displays an edit box containing the currently selected folder/file. This also allows you to type the name of the folder/file to select.

sdShowShares

Displays shareable resources on remote systems inside the Select Directory dialog. This automatically enables the sdNewUI option.

sdNewUI

Use this option to display a new type of dialog, that is sizeable and includes a Make a New Folder button. The dialog also allows you to drag, drop, and use the context menu on either folders or files.

sdShowFiles

Displays files in the Select Directory dialog.

sdValidateDir

Validates the name of the folder/file inserted into the edit box, when the sdShowEdit option is enabled. The validation triggers an event of type TBrowseForFolderCallbackEvent.

See Also