Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

TcxCustomHeader.OnSectionTrack Event

In This Article

Occurs when a user resizes a section with the mouse.

#Declaration

Delphi
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