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

TCustomSpeedButton.NumGlyphs

The number of glyph bitmaps available for the control.

Declaration

Source position: buttons.pp line 427

public property TCustomSpeedButton.NumGlyphs : Integer
  read GetNumGlyphs
  write SetNumGlyphs
  default 1;

Description

NumGlyphs is an Integer property which contains the number of glyph images available to the button control. Its value is read from and written to the NumGlyphs property in the internal TButtonGlyph instance used in the control.

The default value for the property is 1, and is set when a bitmap is assigned to the Glyph property or an image list is assigned to Images. Changing the value for the property causes the control to be redrawn.

Use Images to assign a user-specified list of images that can be used as the glyph for the button states. Use ImageIndex, PressedImageIndex, HotImageIndex, and DisabledImageIndex to specify which image is displayed on the control for the button states.

See also

TCustomSpeedButton.Images

  

List of images available for use as state glyphs on the control.

TCustomSpeedButton.Glyph

  

The bitmap with the glyph image(s) displayed for button states.

TCustomSpeedButton.ImageIndex

  

Ordinal position for the glyph bitmap displayed when the button is in its up state.

TCustomSpeedButton.PressedImageIndex

  

Ordinal position for the glyph bitmap displayed when the button is in a pressed (down) state.

TCustomSpeedButton.HotImageIndex

  

Ordinal position for the glyph bitmap displayed when the mouse is hovered over the button control.

TCustomSpeedButton.DisabledImageIndex

  

Ordinal position for the image displayed when the control is disabled.

TButtonGlyph

  

Represents an image that can be attached to a button.


Version 3.2 Generated 2024-02-25 Home