listview HeaderMenu structure
Sub-properties
Return to Introduction  Previous page  Next page
Applies to
acListView and acDBListView components.  

Declaration
type  
  TacListViewHeaderMenu = class  
  published  
    property AlignLeftItem: TMenuItem;  
    property AlignRightItem: TMenuItem;  
    property AlignCenterItem: TMenuItem;  
    property AscendingItem: TMenuItem;  
    property DescendingItem: TMenuItem;  
    property BestFitItem: TMenuItem;  
    property PopupMenu: TPopupMenu;  
  end;  
 
property HeaderMenu: TacListViewHeaderMenu;  

Description
The HeaderMenu structure specifies custom popup menu for the header sections of the acListView control. You can point custom PopupMenu + "Ascending" and "Descending" items in this menu, which will automatically change sorting direction when user selects these items.  
 
tip Usually you don't need to specify custom menu, because the acListView already has built-in menu with two default items "Sort Ascending" and "Sort Descending". Use the custom popup menu only if you would like to add additional features to the header menu or wish to translate the text for menu items to another language.  
 
If you don't want to show the popup menu for header sections at all — set ShowHeaderMenu property to False.  

See also
ShowHeaderMenu and SortDirection properties.