Sign in Join
FPDoc Onlineexperiment

TSpeedButton.ImageWidth property

Member of TSpeedButtonpublishedIn unit Buttons

Declaration

pascal
property ImageWidth: ;

Description

Not described here; this is what TCustomSpeedButton.ImageWidth says of it:

Width for the glyph bitmap displayed on the control.

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.

An experiment, built from Lazarus main 2dfa93c66e of 10-22-2026. Not the official Lazarus documentation.