Sign in Join
FPDoc Onlineexperiment

TFileSortType enumeration

In unit ShellCtrls

Represents sorting options for the items in a shell control.

Declaration

pascal
TFileSortType = (fstNone,fstAlphabet,fstFoldersFirst,fstCustom)

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

Values

fstNoneNo special sorting is done; items will appear in the order provided by the file system.
fstAlphabetItems are sorted alphabetically (case-insensitive) with folders and files mixed.
fstFoldersFirstItems are sorted alphabetically (case-insensitive) with folders placed at the beginning of the list prior to any file entries in the list.
fstCustomItems 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.

An experiment, built from Lazarus main 2dfa93c66e of 10-22-2026. Not the official Lazarus documentation.