Skip to main content

TcxCustomHeader.OnSectionTrack Event

Occurs when a user resizes a section with the mouse.

Declaration

property OnSectionTrack: TcxSectionTrackEvent read; write;

Remarks

The OnSectionTrack event occurs when a user resizes a section by dragging its edge. Maximum and minimum section width settings can be accessed by the section’s MaxWidth and MinWidth properties. To prevent a section from being resized, set its AllowResize property to False.

Parameter

Meaning

HeaderControl

The header control object where section resizing occurs.

Section

The section being resized or has been resized (depending on the State value passed).

Width

The new width of the section.

State

The state of the section. It may take one of the following values:

  • tsTrackBegin – a user has started dragging the section’s edge;

  • tsTrackMove – a user is dragging the section’s edge;

  • tsTrackEnd – a user has finished dragging the section’s edge.

If you want to do something after the section has been resized, handle the OnSectionResize event.

See Also