[Overview][Constants][Types][Classes][Procedures and functions][Index] Reference for unit 'ComCtrls' (#lcl)

TCoolBand.Width

Width for the band in pixels.

Declaration

Source position: comctrls.pp line 2525

published property TCoolBand.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

TCoolBand.MinWidth

  

Minimum width for the band.

TCoolBand.AutosizeWidth

  

Gets the width needed for the band when its parent Control is auto-sized.

TCoolBand.FixedSize

  

Indicates whether the band is drawn with a fixed size.

TCoolBand.Text

  

Text displayed as the identifier or caption for the band.

TCoolBand.ImageIndex

  

Ordinal position for the image displayed for the band.

TCoolBand.Height

  

Height needed for the band and its visual elements.

TCustomCoolBar.CalculateAndAlign

  

Calculates the size and position for visible bands using the orientation, layout, and order for the control.

TCustomCoolBar.HorizontalSpacing

  

Horizontal space reserved between visual elements on the control.

TCustomCoolBar.VerticalSpacing

  

Vertical space reserved between visual elements in the control.

TCustomCoolBar.FixedSize

  

Indicates if bands on the control have a fixed size.

TCustomCoolBar.BandMaximize

  

Indicates the action used to maximize the width for a band on the control.


Version 4.0 Generated 2025-05-03 Home