[Overview][Classes][Variables][Index] Reference for unit 'DirSel' (#lcl)

TDirSelDlg

[Properties (by Name)] [Methods (by Name)] [Events (by Name)]

TDirSelDlg - a dialog for selecting a directory from a TreeView list

Declaration

Source position: dirsel.pas line 37

type TDirSelDlg = class(TForm)

  btnOK: TButton;

  

btnOK - the 'OK' button for accepting a directory name (suggest the user changes the caption to 'OK')

  btnCancel: TButton;

  

btnCancel - the 'Cancel' button if no selection is desired (suggest the user changes caption to 'Cancel')

  lblDirectory: TLabel;

  

lblDirectory - the label above the panel indicating that the directory is being displayed

  Panel1: TPanel;

  

Panel1 - the panel in which the control buttons are displayed

  DirectoryPanel: TPanel;

  

DirectoryPanel - the panel in which the directory structure is displayed

  TV: TTreeView;

  

TV - the Tree View that shows the directory structure

  procedure FormShow();

  

FormShow - method for displaying the created form

  procedure TVExpanded();

  

TVExpanded - method for expanding the Tree View for the directory structure

public

  function SelectedDir;

  

SelectedDir - returns the name of the selected directory as a string

  property Directory: String; [rw]

  

Directory - the currently selected directory: either the value inserted at the start, or the value selected from the Tree View

  property RootDirectory: String; [rw]

  

RootDirectory - the root directory from which the tree structure is derived

  property ShowHidden: Boolean; [rw]

  

ShowHidden - if True, display the names of hidden directories

end;

Inheritance

TDirSelDlg

  

TDirSelDlg - a dialog for selecting a directory from a TreeView list

|

TForm

?

TObject

See also

TDirectoryEdit

  

TDirectoryEdit - an EditBox to hold a directory name, with an attached SpeedButton that will summon a Directory Open dialog

TSelectDirectoryDialog

  

Select Directory Dialog