Sign in Join
FPDoc Onlineexperiment

TCoolBand.Width property

Member of TCoolBandpublishedIn unit ComCtrls

Width for the band in pixels.

Declaration

pascal
property Width: Integer read FWidth write SetWidth default cDefWidth;

Description

Width is an Integer property with the width of the band in pixels. The default value for the property is defined in the cDefWidth constant in the class instance.

Changing the value for the property causes the Changed method to be called to update all of the items in the bands collection for the parent control.

The value in Width is updated when methods like CalculateAndAlign and AutosizeWidth are called, and when the bands collection in the parent control is updated. The value in the property includes the space needed for the icon image, caption text, the associated control, and borders or spacing.

Use MinWidth to specify a minimum width in pixels for the band.

See also

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