Unit PathDialog

Classes

TPathDialog -

Functions

Register -

Types

TSelectEvent

Constants

Variables


Functions


procedure Register;


Types


TSelectEvent=procedure(Sender:TObject; Path:String) of object
The TPathDialog Component V1.0 MOST IMPORTANT :) ================= This is NOT Freeware: It's PostCardWare. When you use this component or think it's useful, send me a post-card to: Florian Bömers, Werderstr.31, D - 68165 Mannheim, Germany And of course, I am very interested in any application that uses this component (or any other application you wrote). If so, mail me (not the program, just an URL or similar) ! (mail address below) Installation: ============= 1. Copy the File PathDialog.pas to the directory where you store your components (or let it where it is) 2. In Delphi, select Component|Install Component. In the following dialog enter the path and filename of PathDialog.pas and hit OK. 3. Now the TPathDialog Component is available in the Component palette under Samples. How to use it ============= It's as easy as the other CommonDialogs: Drop the icon on your form. Then a call to Execute shows the Path Dialog. If Execute returned true, the directory property contains the selected path. When you assigned a directory prior to calling Execute, it is selected when showing. Advanced functionality ====================== - property Title: This text is shown at the top of the PathDialog. It is normally a line like: 'Select the installation folder' - property ShowStatus and StatusText: if ShowStatus is true, an extra line is inserted above the tree. There the StatusText is displayed. You might set StatusText in the Event-Handler of OnSelect. - Event OnShow: Is called when the Dialog is appearing - Event OnSelect: Is called each time, when the user changes the selected item in the tree. The Path parameter is the currently selected directory. It is '' when the user selected a non-directory item like Control Panel, etc. - function setOKButton: When the Dialog is visible, you can enable or disable the OK Button with this function. This may be handy when you want to limit the possible directories the user can select. You should call this only in one of the event handler procedures. - property visible: is true when the Dialog is showing. - property Handle: Window Handle of the Dialog. Should not be necessary to use it. Copyright ========= (c) 1997 by Florian Bömers send any comments, proposals, enhancements etc. to: fbomers@erato.unice.fr (if this address does not work: boemers@rumms.uni-mannheim.de)

Constants


Variables