Sign in Join
FPDoc Onlineexperiment

TSpeedButton.Margin property

Member of TSpeedButtonpublishedIn unit Buttons

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

Declaration

pascal
property Margin:;

Description

Margin is an Integer property with the space reserved between the Glyph image an the edge of the control. It is applied on the edge specified in Layout, and 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.

Changing the value for the property causes the control to recalculate its preferred size, and the control is redrawn (in SetMargin).

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.

In TCustomSpeedButton, any value assigned to BorderSpacing.InnerBorder is ignored.

This description is the one of Buttons.TCustomSpeedButton.Margin.

See also

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.