Sign in Join
FPDoc Onlineexperiment

TCustomHeaderControl.OnSectionTrack property

Member of TCustomHeaderControlpublishedIn unit ComCtrls

Event handler signalled when drag tracking/resizing is activated for the selected header section on the control.

Declaration

pascal
property OnSectionTrack: TCustomSectionTrackEvent read FOnSectionTrack write FOnSectionTrack;

Description

OnSectionTrack is a TCustomSectionTrackEvent property with the event handler signalled when resize tracking is activated for one of the Sections on the header control. It is signalled (when assigned) from the SectionTrack method. The event occurs when MouseDown, MouseMove, and MouseUp methods handle Shift+Left mouse button events on the control.

An application can implement and assign a handler routine using the signature in TCustomSectionTrackEvent to perform actions related to the resize tracking operation. Arguments passed to the handler routine include the header control and the header section for the notification. The Width and tracking state for the section are also included.

Use OnSectionResize to performs action needed when a resize operation has been completed for one of the header Sections.

Use OnSectionSeparatorDblClick to perform actions when the separator for a header section is double-clicked.

See also

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.