Class TPathDialog (unit PathDialog)

Inherits from

TComponent

Constructors



Functions

function Execute:Boolean;

Shows the dialog.

function setOKButton(enabled:Boolean):Boolean;

Sets the status of the OK-Button to either enabled or disabled } { This function should only be called in one of the 2 Eventhandlers

function getVisible:Boolean;


procedure SetDirectory(Dir:String);


procedure SetStatusText(Text:String);


Properties

property Directory : String

is not valid while the Dialog is visible

property ShowStatus : Boolean

must be set before executing the dialog

property StatusText : String

is only used if ShowStatus is true

property Tag :


property Title : String

should be set before calling Execute

property Handle : THandle

Window Handle of the dialog is only valid when visible } { .

property visible : Boolean

whether the dialog is visible

Events

event OnSelect : TSelectEvent


event OnShow : TNotifyEvent

Events

Variables

FDirectory : String;


FHandle : THandle;


FOnSelect : TSelectEvent;


FOnShow : TNotifyEvent;


FShowStatus : Boolean;


FStatusText : String;


FTitle : String;



Constructors


Functions


function Execute:Boolean;

Shows the dialog. Returns false if the user clicked Cancel } { or if an error occurred

lpParam is a pointer to the item identifier list for the newly selected folder.


function setOKButton(enabled:Boolean):Boolean;

Sets the status of the OK-Button to either enabled or disabled } { This function should only be called in one of the 2 Eventhandlers


function getVisible:Boolean;


procedure SetDirectory(Dir:String);


procedure SetStatusText(Text:String);


Properties


property Directory : String

is not valid while the Dialog is visible


property ShowStatus : Boolean

must be set before executing the dialog


property StatusText : String

is only used if ShowStatus is true


property Tag :


property Title : String

should be set before calling Execute


property Handle : THandle

Window Handle of the dialog is only valid when visible } { ...should not be used...


property visible : Boolean

whether the dialog is visible


Events


event OnSelect : TSelectEvent


event OnShow : TNotifyEvent

Events


Variables


FDirectory : String;


FHandle : THandle;


FOnSelect : TSelectEvent;


FOnShow : TNotifyEvent;


FShowStatus : Boolean;


FStatusText : String;


FTitle : String;