[Overview][Constants][Types][Classes][Procedures and functions][Variables][Index] |
Gets the ordinal position in the LCL Glyph image list for the specified button identifier.
Source position: buttons.pp line 532
function GetButtonImageIndex( |
idButton: TButtonImage |
):Integer; |
idButton |
|
Button identifier constant for the image requested in the routine. |
Ordinal position for the specified button identifier, or -1 when not found.
GetButtonImageIndex is an Integer function used to retrieve the position for the specified button identifier in the LCL glyph image list.
idButton is the TButtonImage value for the button identifier requested in the routine. It is used to identify the resource name in BitBtnResNames for the button glyph. The resource name is located in the LCLGlyphs image list using its GetImageIndex method.
The return value contains the ordinal position in LCLGlyphs where the corresponding resource name is stored, or -1 if the resource name is not found.
|
Represents button identifiers defined in the lcltype.pp unit. |
|
|
Contains resource names for corresponding button identifiers in TBitBtn. |
|
|
Gets the position of the specified resource. |
|
|
Provides access to the TLCLGlyphs instance in the implementation. |
Version 4.0 | Generated 2025-05-03 | Home |