Description:

This component provdies a ListView component that displays disk drives.  
As an added convenience to the user, fixed drives which are locally 
attached are automatically selected.  This component scans the drives 
when it is inserted into a form so that the user can better size and 
judge the component.


Installation:

Extract the .PAS and the .DCR files from the Zip file to a directory
of your choice, and within Delphi IDE, use the Component, Install... 
option.  You should end up with a new section on your component 
palette entitled "Davids".  You can change the section of the 
palette by editing the source code for the component's Register
procedure.


Usage:

So that the user can scan drives (which might take a few moments) at a 
time when it is appropriate, the component does NOT scan drives when it 
first appears on a form.  The user is expected to call the ScanDrives 
method, perhaps triggered by a timer on the main form.

As each drive is selected, the OnChange event for the control may be 
captured to discover the current list of selected drives using the 
SelectedDrives function.

The SelectedDrives function returns a string of selected drive letters
  e.g. CDE

Finally, the SelectLocalDrives property enables the automatic selection 
of local disk drives during a call to ScanDrives.  If this is true, 
local hard disk drives are marked as selected in the ListView, allowing
the user to perform some operation on their local hard disks.  This is
exemplified by my FindDuplicates program.

The behaviour of this component with differing ImageLists and 
ViewStyles has not been investigated.


Known bugs:

The disk list belonging to the developement machine is saved with the
program being developed.  This can result in a flash of an incorrect
disk drive list being displayed on the user's machine, before being
replaced with the user's real disk list.  If anyone knows how to sort
this I'd be grateful to hear.....


Revison history:

V1.0.0  1997 Mar 30  First version
V1.0.2  1997 Apr 02  Move adding Columns to CreateWnd method (thanks, Brad Stowers)


Copyright:

This Freeware component is Copyright  David J Taylor, Edinburgh,
1997.  If you change it, I'd appreciate a note so that your 
improvements can be passed on to others in the next version.

david.taylor@gecm.com
