[Overview][Constants][Types][Classes][Procedures and functions][Variables][Index] |
Loads a bitmap from a named resource into the specified Glyph.
Source position: buttons.pp line 521
procedure LoadGlyphFromResourceName( |
AGlyph: TButtonGlyph; |
Instance: THandle; |
const AName: string |
); |
AGlyph |
|
Button glyph updated in the routine. |
Instance |
|
Handle for the resource. |
AName |
|
Resource name loaded in the routine. |
LoadGlyphFromResourceName is a procedure used to load a bitmap into the specified Glyph from a named resource. AGlyph is the TButtonGlyph where the bitmap is stored. Instance is a THandle for the resource instance accessed in the routine. AName contains the name for the resource loaded in the routine.
LoadGlyphFromResourceName calls CreateBitmapFromResourceName to retrieve a TCustomBitmap using the specified handle and resource name. The bitmap is assigned to the TButtonGlyph in AGlyph. When AName is an empty string (''), the Glyph image in AGlyph is set to Nil.
LoadGlyphFromResourceName is used in the implementation of the LoadGlyphFromResourceName method in both TCustomBitBtn and TCustomSpeedButton.
|
Loads the Glyph image with the specified named from a resource instance. |
|
|
Loads the image for the Glyph with the specified name from a resource instance. |
|
|
Represents an image that can be attached to a button. |
|
Version 3.2 | Generated 2024-02-25 | Home |