TCustomHeaderControl.OnSectionDrag property
Event handler signalled to determine whether a header section can be dragged and dropped at a new position on the control.
Declaration
property OnSectionDrag: TSectionDragEvent read FOnSectionDrag write FOnSectionDrag;Description
OnSectionDrag is a
TSectionDragEvent property with the
event handler signalled when a drag and drop operation for a section header is
requested.
Arguments passed to the TSectionDragEvent routine include the Sender object (TCustomHeaderControl) for the event notification, and THeaderSection instances representing the dragged section and the section that is the target for the drag request. The AllowDrag variable parameter is used to indicate whether the drag and drop operation using the specified source and destination is allowed. Setting AllowDrag to False in the handler prevents the drag and drop operation for the specified sections.
OnSectionDrag is signalled (when assigned) from the SectionDrag method, and occurs if DragReorder has been enabled for the control.
See also
An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.
