Sign in Join
FPDoc Onlineexperiment

TCustomSpeedButton.ImageWidth property

Member of TCustomSpeedButtonpublicIn unit Buttons

Width for the glyph bitmap displayed on the control.

Declaration

pascal
property ImageWidth: Integer read GetImageWidth write SetImageWidth default 0;

Description

ImageWidth is an Integer property with the Width in pixels for the TCustomImage instances stored in the Images property. The default value for the property is 0, and indicates that an explicit value has not been assigned for the property. This causes the Width property in the TCustomImageList to be used for an image retrieved from the list.

Changing the property value causes the external TButtonGlyph instance in the class to be updated with the new value. InvalidatePreferredSize is called to recalculate the preferred dimensions for the class instance. AdjustSize is called to auto-size the visible control and its parent.

See also

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