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

TCustomSpeedButton.ImageWidth

Width for the glyph bitmap displayed on the control.

Declaration

Source position: buttons.pp line 424

public property TCustomSpeedButton.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

TCustomSpeedButton.Images

  

List of images available for use as state glyphs on the control.

TCustomSpeedButton.ImageIndex

  

Ordinal position for the glyph bitmap displayed when the button is in its up state.

TCustomSpeedButton.Glyph

  

The bitmap with the glyph image(s) displayed for button states.

TButtonGlyph

  

Represents an image that can be attached to a button.


Version 3.2 Generated 2024-02-25 Home