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

TCustomBitBtn.Glyph

Bitmap with the Glyph displayed on the control.

Declaration

Source position: buttons.pp line 219

public property TCustomBitBtn.Glyph : TBitmap
  read GetGlyph
  write SetGlyph
  stored IsGlyphStored;

Description

Glyph is a TBitmap property with bitmap(s) displayed on the button control. The bitmap is stored internally in a TButtonGlyph instance that is populated when a glyph resource is used for image(s) on the control. A bitmap can be assigned directly to the property. Or, it can be loaded when the LoadGlyphFromResourceName, LoadGlyphFromLazarusResource, or LoadGlyphFromStock method is called.

Glyph can contain a bitmap with multiple adjacent images representing the states for the button control. Use ImageWidth to define the Width for individual images in the combined bitmap. If the bitmap has a Width that is larger than ImageWidth, it is split into separate bitmaps for use in the internal TButtonGlyph instance. Use ImageIndex, DisabledImageIndex, HotImageIndex, and PressedImageIndex to indicate which bitmap is used for the corresponding button state.

Remark: Unlike TCustomSpeedButton, SelectedImageIndex is not available in TCustomBitBtn; it cannot receive input focus, so a selected image is neither needed nor implemented.

See also

TCustomBitBtn.Images

  

Contains the list of images available for use as the glyph on a custom button control.

TCustomBitBtn.ImageIndex

  

Ordinal position for the default bitmap displayed when the button control is up (not pressed).

TCustomBitBtn.ImageWidth

  

Width for the value in Images displayed on the button control.

TCustomBitBtn.Kind

  

Specifies the button kind including the default bitmap and caption for the button control.

TCustomBitBtn.LoadGlyphFromResourceName

  

Loads the Glyph image with the specified named from a resource instance.

TCustomBitBtn.LoadGlyphFromLazarusResource

  

Loads a glyph image from the Lazarus resource file (.lrs).

TCustomBitBtn.LoadGlyphFromStock

  

Loads a stock glyph image for the specified button identifier.


Version 4.0 Generated 2025-05-03 Home