Vcl.FileCtrl.TSelectDirOpts

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

TSelectDirOpts = set of TSelectDirOpt;

C++

typedef System::Set<TSelectDirOpt, TSelectDirOpt::sdAllowCreate, TSelectDirOpt::sdPrompt> TSelectDirOpts;

Properties

Type Visibility Source Unit Parent
set
typedef
public
Vcl.FileCtrl.pas
Vcl.FileCtrl.hpp
Vcl.FileCtrl Vcl.FileCtrl

Description

TSelectDirOpts and TSelectDirOpt determine how a Select Directory dialog responds when the user enters a nonexistent directory.

These are the possible values that can be added to the set of options:

Value Meaning

sdAllowCreate

An edit box that allows you to type in the name of a directory that does not exist. This option does not create a directory. The application must read the name of the selected directory and create it if desired.

sdPerformCreate

Use it only in combination with sdAllowCreate. If you enter a directory name that does not exist, the Select Directory dialog creates it.

sdPrompt

Use it only in combination with sdAllowCreate. Displays a message box that informs you when the entered directory does not exist and asks if the directory should be created. If you click OK and if the option set includes sdPerformCreate, then the directory is created. If the option set does not include sdPerformCreate, the directory is not created. The application must read the directory name and create it.

See Also

Code Examples