RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
FileCtrl.TSelectDirOpt Enumeration

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

Pascal
TSelectDirOpt = (
  sdAllowCreate,
  sdPerformCreate,
  sdPrompt
);
C++
enum TSelectDirOpt {
  sdAllowCreate,
  sdPerformCreate,
  sdPrompt
};

FileCtrl

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

Value 
Meaning 
sdAllowCreate  
An edit box allows the user 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  
Used only in combination with sdAllowCreate. If the user enters a directory name that does not exist, the directory selection dialog creates it.  
sdPrompt  
Used only in combination with sdAllowCreate. Displays a message box that informs the user when the entered directory does not exist and asks if the directory should be created. If the user chooses OK, the directory is created if the option set includes sdPerformCreate. If the option set does not include sdPerformCreate, the directory is not created: the application must read the directory name and create it.  

 

SelectDirectory

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!