listview OnAlignmentChanged event
Return to Introduction  Previous page  Next page
Applies to
acListView and acDBListView components.  

Declaration
type  
  TLVColumnClickEvent = procedure(Sender: TObject; Column: TListColumn) of object;  
 
property OnAlignmentChanged: TLVColumnClickEvent;  

Description
The OnAlignmentChanged event occurs when user changes the text alignment for some certain column, clicking the menu item specified in AlignLeftItemClick, AlignRightItemClick or AlignCenterItemClick properties of HeaderMenu structure.  
 
The Column parameter determines the column, which alignment has been changed.  

Note
iiwarning This event works only when user changes the column's alignment using menu items specified in HeaderMenu. It does not works when you programmatically change the alignment using Columns[ColumnIndex].Alignment property.  

See also
HeaderMenu property.