[Overview][Constants][Types][Classes][Procedures and functions][Index] |
Ordinal position in an image list for the icon displayed on the tool button.
Source position: comctrls.pp line 2189
published property TToolButton.ImageIndex : TImageIndex |
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.
|
Draws the tool bar button to the Canvas for the control. |
|
|
Gets the image list, index, and drawing effect for the icon on the tool button. |
|
|
Contains a menu item associated with the tool button. |
|
|
Copies properties from the specified menu item. |
|
|
List with images displayed when a tool button is enabled. |
|
|
List with images displayed when a button is "hot" or hovered. |
|
|
List with images displayed when a tool button is not enabled. |
Version 3.2 | Generated 2024-02-25 | Home |