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

# TCustomSpeedButton.DisabledImageIndex

Ordinal position for the image displayed when the control is disabled.

## Declaration

Source position: buttons.pp line 417

`public property TCustomSpeedButton.DisabledImageIndex : TImageIndex index bsDisabled read GetImageIndex write SetImageIndex default - 1;`

## Description

DisabledImageIndex is a TImageIndex property with the ordinal position for the bitmap displayed when Enabled is set to False. It indicates the position in Images or Glyph where the image data is stored. The default value for the property is -1, and indicates that an explicit value has not been assigned for the property.

The property value is read from and written to the image index members in ButtonGlyph.

The Lazarus IDE provides a property editor that allows selection of one of the Images from a drop-down image list. The position for the selected image is stored as the property value in the Object Inspector.

## Version info

Added in LCL version 2.3.0. Available since version 3.0.

## See also

TCustomSpeedButton.Images |  | List of images available for use as state glyphs on the control.
TCustomSpeedButton.Glyph |  | The bitmap with the glyph image(s) displayed for button states.
TCustomSpeedButton.ButtonGlyph |  | Gets the TButtonGlyph used for the control.
TCustomSpeedButton.ImageIndex |  | Ordinal position for the glyph bitmap displayed when the button is in its up state.
TCustomSpeedButton.HotImageIndex |  | Ordinal position for the glyph bitmap displayed when the mouse is hovered over the button control.
TCustomSpeedButton.PressedImageIndex |  | Ordinal position for the glyph bitmap displayed when the button is in a pressed (down) state.
TCustomSpeedButton.SelectedImageIndex |  | Ordinal position for the glyph bitmap displayed when the button is selected.