Vcl.Buttons.TBitBtn.Spacing

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

property Spacing: Integer read FSpacing write SetSpacing default 4;

C++

__property int Spacing = {read=FSpacing, write=SetSpacing, default=4};

Properties

Type Visibility Source Unit Parent
property published
Vcl.Buttons.pas
Vcl.Buttons.hpp
Vcl.Buttons TBitBtn

Description

Determines where the image and text appear on a bitmap or speed button.

Spacing determines the number of pixels between the image (specified in the Glyph property) and the text (specified in the Caption property). The default value is 4 pixels.

If Spacing is a positive number, its value is the number of pixels between the image and text. If Spacing is 0, no pixels will be between the image and text. If Spacing is -1, the text appears centered between the image and the button edge. The number of pixels between the image and text is equal to the number of pixels between the text and the button edge opposite the glyph.

See Also