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

TCustomSpeedButton.Layout

Indicates the alignment of the glyph bitmap relative to the caption for the control.

Declaration

Source position: buttons.pp line 425

public property TCustomSpeedButton.Layout : TButtonLayout
  read FLayout
  write SetLayout
  default blGlyphLeft;

Description

Layout is a TButtonLayout property which indicates the position for the glyph on the speed button relative to the caption text for the control. The default value for the property is blGlyphLeft. It causes the Margin, Glyph (or image), Spacing, and Caption to be aligned to the left edge of the button surface.

Changing the property value causes the control to be redrawn.

Layout is used in the MeasureDraw method to position and size the text and glyph image for the button.

Use Margin to set the space reserved prior to the glyph bitmap on the aligned edge of the control. Use Spacing to set the space reserved between the Glyph image and the Caption relative to the aligned edge of the control.

See also

TCustomSpeedButton.Glyph

  

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

TCustomSpeedButton.Images

  

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

TCustomSpeedButton.ImageIndex

  

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

TCustomSpeedButton.Margin

  

Space between the glyph bitmap and the aligned edge in the button layout.

TCustomSpeedButton.Spacing

  

Spacing between the Glyph bitmap and the Caption for the control.

TCustomSpeedButton.MeasureDraw

  

Calculates the Width, Height, and layout for the speed button and optionally renders the control.

TButtonLayout

  

Enumerated type which defines the position for a glyph on a button.

TControl.Caption

  

The text displayed for the control.


Version 3.2 Generated 2024-02-25 Home