Sign in Join
FPDoc Onlineexperiment

TToolButton.ImageIndex property

Member of TToolButtonpublishedIn unit ComCtrls

Ordinal position in an image list for the icon displayed on the tool button.

Declaration

pascal
property ImageIndex: TImageIndex read FImageIndex write SetImageIndex stored IsImageIndexStored default - 1;

Description

ImageIndex is a TImageIndex property with the ordinal position in an image list for the icon displayed on the tool button. It refers to a position in Images, HotImages, or DisabledImages in the parent tool bar. The default value for the property is -1, and indicates that an image has not been specified for the tool button. Changing the value for the property causes the tool button to be redrawn.

The property value may be changed in the CopyPropertiesFromMenuItem method when a MenuItem is assigned to the tool button.

ImageIndex is used in the Paint method to select the icon drawn on the tool button.

See also

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