TOpenDirDialog( unit KOL.pas ) ï TObj ï _TObj

TOpenDirDialog = object( TObj )

Dialog for open directories, uses SHBrowseForFolder.

### TOpenDirDialog properties

property Title: KOLString;
Title for a dialog.

property Options: TOpenDirOptions;
Option flags.

property Path: KOLString; Ñ
Resulting (selected by user) path.

property InitialPath: KOLString;
Set this property to a path of directory to be selected initially in a dialog.

property CenterOnScreen: Boolean;
Set it to True to center dialog on screen.

property WndOwner: HWnd;
Owner window. If you want to provide your dialog visible over stay-on-top form, fire it as a child of the form, assigning the handle of form window to this property first.

property DialogWnd: HWnd; Ñ
Handle to the open directory dialog itself, become available on the first call of callback procedure (i.e. on the first call to OnSelChanged).

#### Properties, inherited from TObj

### TOpenDirDialog methods

destructor Destroy; virtual;
destructor

function Execute: Boolean;
Call it to select directory by user. Returns True, if operation was not cancelled by user.

#### Methods, inherited from TObj

### TOpenDirDialog events

property OnSelChanged: TOnODSelChange;
This event is called every time, when user selects another directory. It is possible to enable/disable OK button in dialog and/or change dialog status text in responce to event.

#### Events, inherited from TObj

### TOpenDirDialog fields

#### Fields, inherited from TObj

[ Index ]

This help is generated 14-Jun-2010 by KOL Help generator, (C) 2000-2001 by Vladimir Kladov
Modified (C) 2003 by Alexander Bartov