Class TFileList (unit AmedeoFileList) |
TFileList is a TListView clone wich behaves like Windows Explorer's file window
Constructors |
////////////////////////////////////////////////////////////////////////////// CLASS METHODS FOR TFileList ////////////////////////////////////////////////////////////////////////////// Object creation
Functions |
Add specifications to File Specifications list
Add specifications to Search Path List
////////////////////////////////////////////////////////////////////////////// PROCESSING & SERVICES ROUTINES //////////////////////////////////////////////////////////////////////////////
Builds columns for ListView NAME and SIZE column always created and just hidden if not required.
////////////////////////////////////////////////////////////////////////////// EVENT HANDLERS ////////////////////////////////////////////////////////////////////////////// overrides ancestor's handler for column headers click: calls first the Set Sort Column procedure and then the inherited ColClick method.
Get Search Path List
Allows/Prevent loading of Directory Items in the file list
Allows/Prevent loading of Parent Directory Items in the file list
////////////////////////////////////////////////////////////////////////////// PROPERTIES INTERFACE ////////////////////////////////////////////////////////////////////////////// Set File Attributes
Set Search Path List
Set current sort column
Sets up columns infos for ListView
Update File List with contents of the directory specified in fDirectory
Properties |
Events |
Variables |
Constructors |
Public declarations
////////////////////////////////////////////////////////////////////////////// CLASS METHODS FOR TFileList ////////////////////////////////////////////////////////////////////////////// Object creation
Functions |
protection against index error
add a file
Add specifications to File Specifications list
Add file specifications
Add specifications to Search Path List
Object deletion
Add search path specifications
////////////////////////////////////////////////////////////////////////////// PROCESSING & SERVICES ROUTINES //////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////// INITIALIZATION //////////////////////////////////////////////////////////////////////////////
set column caption
set column width
Builds columns for ListView NAME and SIZE column always created and just hidden if not required. Other columns are created only if requested
Add a file entry to the list view. The FindData structure should be returned from a FindFirstFile/FindNextFile call
Protected declarations
////////////////////////////////////////////////////////////////////////////// EVENT HANDLERS ////////////////////////////////////////////////////////////////////////////// overrides ancestor's handler for column headers click: calls first the Set Sort Column procedure and then the inherited ColClick method.
Get File Specifications list
Get file specifications
Get Search Path List
ignore duplicates
Get search path list
Allows/Prevent loading of Directory Items in the file list
enable/disable list of dirs
Allows/Prevent loading of Parent Directory Items in the file list
enable/disable list of dirs
////////////////////////////////////////////////////////////////////////////// PROPERTIES INTERFACE ////////////////////////////////////////////////////////////////////////////// Set File Attributes
Set File Specification
Set file specifications
Set Search Path List
Set search path specifications
Set current sort column
Set current column set
scan the directory and load file list
Sets up columns infos for ListView
chance to add custom info
Update File List with contents of the directory specified in fDirectory
Properties |
class specific published properties} // The Directory property lets you specify a directory or a list of directories. // Upon change the specified paths will be used to retrieve and load matching files. // Use the Mask property to specify a file mask or a list of file masks. // List of paths and/or file masks may be separated by commas or semicolumns. // Setting the Directory property to a null string will prevent directory scan and // allow manual file loading.
Events |
Variables |
file attributes
file specifications list
include directories in file scan
current directory
Private declarations
current sort column
visible columns
show '..' directory