RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
THeaderControl.OnSectionTrack Event

Occurs as one of the header control's sections is being resized.

Pascal
property OnSectionTrack: TSectionTrackEvent;
C++
__property TSectionTrackEvent OnSectionTrack;

The OnSectionTrack event tracks the dragging of a header section's border as it happens. OnSectionTrack occurs when the mouse pointer is positioned between two header sections and the left mouse button is depressed. 

OnSectionTrack is of type TSectionTrackEvent, whose Width and State parameters indicate the size of the header section (in pixels) and the status of the event. The State property can take three values:

Value 
Meaning 
tsTrackBegin  
The border has not yet been dragged.  
tsTrackMove  
The border is being dragged.  
tsTrackEnd  
The border is no longer being dragged.  

Use OnSectionTrack when you want something to happen at runtime as a header section is being resized. 

 

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!