Buttons unit
Contains types and classes used to implement specialized buttons.
buttons.pp contains classes, types, and routines used to
implements specialized button controls. It registers the following components
in the Lazarus IDE component palette:
Additional Tab
- TBitBtn
- TSpeedButton
buttons.pp is part of the Lazarus Component Library (
LCL).
Classes and records
TBitBtn | class | A button with a small image attached. |
TButtonGlyph | class | Represents an image that can be attached to a button. |
TCustomBitBtn | class | TCustomBitBtn - the ancestor class for TBitBtn. |
TCustomSpeedButton | class | The ancestor for the TSpeedButton class. |
TSpeedButton | class | A Button used to represent states (checked or unchecked). |
TSpeedButtonActionLink | class | Links a TSpeedButton with a TAction instance. |
Procedures and functions
BidiAdjustButtonLayout | function | Adjusts the specified button layout for use in bi-directional rendering. |
dbgs | function | Gets a String with debugging information from the specified TBitBtnKind instance. |
GetButtonCaption | function | Gets the default caption for the specified button identifier. |
GetButtonIcon | function | Gets a bitmap with the glyph image for the specified button identifier. |
GetButtonImageIndex | function | Gets the ordinal position in the LCL Glyph image list for the specified button identifier. |
GetDefaultButtonIcon | function | Gets a scaled bitmap with the default glyph for the specified button identifier. |
GetLCLDefaultBtnGlyph | function | Gets the default LCL button glyph for the specified button Kind. |
LoadGlyphFromLazarusResource | procedure | Loads the named glyph image from a Lazarus Resource file. |
LoadGlyphFromResource | procedure | Loads the image for the specified button glyph from the LCL glyph resource. |
LoadGlyphFromResourceName | procedure | Loads a bitmap from a named resource into the specified Glyph. |
LoadGlyphFromStock | procedure | Loads the bitmap for the specified Glyph using the image for the specified button identifier. |
Register | procedure | Registers components for use in the Lazarus IDE. |
Types
TBitBtnKind | enumeration | TBitBtnKind - enumerated type of possible kinds of BitButtons. |
TBitBtnKinds | set | TBitBtnKinds - set of TBitBtnKind. |
TButtonImage | type | Represents button identifiers defined in the lcltype.pp unit. |
TButtonLayout | enumeration | Enumerated type which defines the position for a glyph on a button. |
TButtonState | enumeration | A set of constants to define the state of a SpeedButton. |
TGetDefaultBitBtnGlyph | procedure type | TGetDefaultBitBtnGlyph - generic method to return a default Bit Button Glyph of specified Kind. |
TGlyphDrawEffectsEnabled | enumeration | Controls glyph drawing effects for mouse-over and mouse-down events. |
TGlyphImageLayout | enumeration | |
TGlyphTransparencyMode | enumeration | Enumerated type with transparency mode values for button glyphs. |
TNumGlyphs | type | Defines the range of values available to access button glyphs. |
Constants
BitBtnImages | constant | Contains button identifiers used to get icons for TBitBtn button glyphs. |
BitBtnModalResults | constant | Contains modal result values for buttons defined in TBitBtnKind. |
BitBtnResNames | constant | Contains resource names for corresponding button identifiers in TBitBtn. |
Variables
GetDefaultBitBtnGlyph | variable | Address of the routine used to get default glyphs for TBitBtn instances. |
Uses
An experiment, built from Lazarus main 2dfa93c66e of 10-22-2026. Not the official Lazarus documentation.
