Unit PathCombo

Classes

TPathComboBox -

Functions

Register -

Types

TDriveSet

Constants

Variables


Functions


procedure Register;


Types


TDriveSet = set of 0..25
TPATHCOMBOBOX Component © Angus Johnson ajohnson@rpi.net.au Version 2.0 September 1997. DESCRIPTION: File Path combobox component which appears and behaves almost identically to the combobox in the Win95 Open & Save Dialogs. Can be used with the excellent TFileList component written by Amedeo Lanza . (Source code - Flist010.zip - available from DSP -> http://SunSITE.icm.edu.pl/delphi/) USAGE: 1. To get the full path name (including drive name)... FullPathName := PathComboBox1.path 2. To programatically set the path ... PathComboBox1.path := 'c:\Program Files\'; 3. Assign PathComboBox1's OnChange method ... FileList1.directory := PathComboBox1.path; etc. NOTE: Selecting the Virtual folder "Drives" will return an empty Path! KNOWN "FEATURES": Changing ItemIndex will not change Path. eg: itemindex := itemindex-1 {DOES NOT CHANGE PATH} do: Path := items[itemindex-1] {HOWEVER THIS DOES.} CHANGES FROM VERSION 1.0 : 1. DrawItem method deleted (no longer called) as all drawing now done in CNDrawItem method. Now only the display text is highlighted on selection. DISCLAIMER: This software may be freely used but no guarantees are given as to reliability. Please keep this header to acknowledge source. USE AT YOUR OWN RISK. PROBLEMS/COMMENTS/THANKS ... ajohnson@rpi.net.au

Constants


Variables