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

TCustomSpeedButton.Margin

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

Declaration

Source position: buttons.pp line 426

public property TCustomSpeedButton.Margin : Integer
  read FMargin
  write SetMargin
  default - 1;

Description

Margin is an Integer property with the space reserved between the Glyph image an the edge of the control. It occurs on the edge specified in Layout, and generally refers to a number of pixels. The value -1 has special meaning; it causes both the glyph and caption to be centered on the button surface.

Margin is used in the MeasureDraw method when the glyph image and caption text are positioned and sized on the control.

Use Layout to specify the edge on the button control to which the glyph bitmap and caption are aligned.

Use Spacing to set the space reserved between the glyph bitmap and the caption for 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.Layout

  

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

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.

TControl.Caption

  

The text displayed for the control.


Version 3.2 Generated 2024-02-25 Home