Sign in Join
FPDoc Onlineexperiment

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

TBitBtnclassA button with a small image attached.
TButtonGlyphclassRepresents an image that can be attached to a button.
TCustomBitBtnclassTCustomBitBtn - the ancestor class for TBitBtn.
TCustomSpeedButtonclassThe ancestor for the TSpeedButton class.
TSpeedButtonclassA Button used to represent states (checked or unchecked).
TSpeedButtonActionLinkclassLinks a TSpeedButton with a TAction instance.

Procedures and functions

BidiAdjustButtonLayoutfunctionAdjusts the specified button layout for use in bi-directional rendering.
dbgsfunctionGets a String with debugging information from the specified TBitBtnKind instance.
GetButtonCaptionfunctionGets the default caption for the specified button identifier.
GetButtonIconfunctionGets a bitmap with the glyph image for the specified button identifier.
GetButtonImageIndexfunctionGets the ordinal position in the LCL Glyph image list for the specified button identifier.
GetDefaultButtonIconfunctionGets a scaled bitmap with the default glyph for the specified button identifier.
GetLCLDefaultBtnGlyphfunctionGets the default LCL button glyph for the specified button Kind.
LoadGlyphFromLazarusResourceprocedureLoads the named glyph image from a Lazarus Resource file.
LoadGlyphFromResourceprocedureLoads the image for the specified button glyph from the LCL glyph resource.
LoadGlyphFromResourceNameprocedureLoads a bitmap from a named resource into the specified Glyph.
LoadGlyphFromStockprocedureLoads the bitmap for the specified Glyph using the image for the specified button identifier.
RegisterprocedureRegisters components for use in the Lazarus IDE.

Types

TBitBtnKindenumerationTBitBtnKind - enumerated type of possible kinds of BitButtons.
TBitBtnKindssetTBitBtnKinds - set of TBitBtnKind.
TButtonImagetypeRepresents button identifiers defined in the lcltype.pp unit.
TButtonLayoutenumerationEnumerated type which defines the position for a glyph on a button.
TButtonStateenumerationA set of constants to define the state of a SpeedButton.
TGetDefaultBitBtnGlyphprocedure typeTGetDefaultBitBtnGlyph - generic method to return a default Bit Button Glyph of specified Kind.
TGlyphDrawEffectsEnabledenumerationControls glyph drawing effects for mouse-over and mouse-down events.
TGlyphImageLayoutenumeration
TGlyphTransparencyModeenumerationEnumerated type with transparency mode values for button glyphs.
TNumGlyphstypeDefines the range of values available to access button glyphs.

Constants

BitBtnImagesconstantContains button identifiers used to get icons for TBitBtn button glyphs.
BitBtnModalResultsconstantContains modal result values for buttons defined in TBitBtnKind.
BitBtnResNamesconstantContains resource names for corresponding button identifiers in TBitBtn.

Variables

GetDefaultBitBtnGlyphvariableAddress 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.