Unit 'ShellCtrls' Package
[Overview][Types][Classes][Procedures and functions][Index] [#lcl]

TFileSortType

Represents sorting options for the items in a shell control.

Declaration

Source position: shellctrls.pas line 44

type TFileSortType = (

  fstNone,

  

No special sorting is done; items will appear in the order provided by the file system.

  fstAlphabet,

  

Items are sorted alphabetically with folders and files mixed.

  fstFoldersFirst,

  

Items are sorted alphabetically with folders placed at the beginning of the list.

  fstCustom

  

Items are sorted using a user-defined compare function for files and directories. The sort routine should return a negative value if the first item comes before the second item, a positive value when the first item comes after the second item, or 0 (zero) when both items have the same value.

);

Description

TFileSortType is an enumerated type with values that control the sort order for the items in a shell control. TFileSortType is the type used to implement the TCustomShellTreeView.FileSortType property.

See also

TCustomShellTreeView.FileSortType

  

Indicates the sort type used for items in the tree.

TCustomShellTreeView.OnSortCompare

  

Event handler signalled to compare file items in a custom sort routine.

TFileItemCompareEvent

  

Implements a handler routine used to compare values in a custom file sort for TCustomShellTreeView.