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

TCustomBitBtn.ImageWidth

Width for the value in Images displayed on the button control.

Declaration

Source position: buttons.pp line 224

public property TCustomBitBtn.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 internal 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 a visible control and its parent.

See also

TCustomBitBtn.Images

  

Contains the list of images available for use as the glyph on a custom button control.

TCustomBitBtn.ImageIndex

  

Ordinal position for the default bitmap displayed when the button control is up (not pressed).

TCustomBitBtn.Glyph

  

Bitmap with the Glyph displayed on the control.

TButtonGlyph

  

Represents an image that can be attached to a button.


Version 4.0 Generated 2025-05-03 Home