RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
THeaderControl.OnSectionDrag Event

Occurs when the user drags a header section to a new position.

Pascal
property OnSectionDrag: TSectionDragEvent;
C++
__property TSectionDragEvent OnSectionDrag;

Write an OnSectionDrag event handler to respond when a user tries to reorder the sections in the header control. The OnSectionDrag event handler can conditionally prevent the user from dragging a header to a new position. 

If the AllowDrag parameter is true on exit from the event handler, the header control reorders the sections and generates an OnSectionEndDrag event when the reorder is complete. 

OnSectionDrag only occurs if the DragReorder property is true. 

 

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