Links
EControl Syntax Editor SDK
TFormattedSyntMemoPopupList.OnSortItems Event

Occurs when sorting items.

property OnSortItems: TSortItemsEvent;

Each string in Index list is item or display item like in original Items or DisplayItems lists. Objects of Index holds information about original position of item. Sorting of Index list should be performed using TStrings.Move method. 

Content of Index depends on selected sorting type (SortType property).

Sort type 
Index 
asNone 
Event handler is not called (no sorting) 
asItems 
Index contains Items 
asItems_Desc 
Index contains Items; Index is inverted after sorting. 
asDisplayItems 
Index contains DisplayItems 
asDisplayItems_Desc 
Index contains DisplayItems; Index is inverted after sorting. 
Copyright (c) 2004-2011. All rights reserved.
What do you think about this topic? Send feedback!