A dialog for displaying a directory structure and selecting a directory
TDirSelDlg
- a dialog for selecting a directory from a TreeView list
TDirectoryEdit TSelectDirectoryDialog
Panel1
- the panel in which the control buttons are displayed
TV
- the Tree View that shows the directory structure
FormShow
- method for displaying the created form
TVExpanded
- method for expanding the Tree View for the directory structure
SelectedDir
- returns the name of the selected directory as a string
Directory
- the currently selected directory: either the value inserted at the start, or the value selected from the Tree View
RootDirectory
- the root directory from which the tree structure is derived
ShowHidden
- if True, display the names of hidden directories

ShowHidden - if True, display the names of hidden directories

For example, in Windows and derivatives, display directories in and below the 'Windows' directory (mostly system files); in Unix/Linux etc, display directories prefixed with a dot (mostly configuration files, eg ' .lazarus ')
btnOK
- the 'OK' button for accepting a directory name (suggest the user changes the caption to 'OK')
btnCancel
- the 'Cancel' button if no selection is desired (suggest the user changes caption to 'Cancel')
lblDirectory
- the label above the panel indicating that the directory is being displayed
DirectoryPanel
- the panel in which the directory structure is displayed