Sign in Join
FPDoc Onlineexperiment

THeaderSection.Width property

Member of THeaderSectionpublishedIn unit ComCtrls

Total width in pixels for the text and image on the header section.

Declaration

pascal
property Width: Integer read GetWidth write SetWidth;

Description

Width is an Integer property with the number of pixels allocated for the text and image on the header section. It does not indicate the actual width of the content - only the size allocated for its display.

The Width property always returns 0 (zero) when Visible is set to False.

Setting a new value for the property causes it to be range-limited to the values in MinWidth and MaxWidth. The item is updated in its collection when Width has been changed.

The value in the property may be automatically scaled for high DPI displays in the DoAutoAdjustLayout and ChangeScale methods for the header control.

Width is updated at design-time when the divider between adjacent header sections is dragged.

Use MinWidth and MaxWidth to specify the smallest and largest sizes allowed for the header section.

See also

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