To make usage of standard buttons a bit easier a TBitBtn has a property Kind that let you select a buttonkind like bkOk to create an [Ok] button with text and corresponding picture (accessible as Glyph and a modal-result 'mrOk').
Positioning of glyph and caption can be controlled by means of these properties:
Layoutis an enumeration of
blGlyphBottomwhich determines whether the glyph will be placed at the left, right, above or below the caption, respectively. Default:
Marginis the distance between the edge of the button and glyph, in pixels. The value -1 means that the combination of glyph and caption is centered within the button. Default:
Spacingis the distance between the glyph and the caption, in pixels. The value -1 means that the caption is centered between glyph and button edge. If
Marginis -1, too, then glyph and caption will be equally distributed within the button area. Default:
If you have several vertically stacked BitBtn components (with
Layout=blGlyphLeft) on a form and want to left-align glyphs and captions set
Spacing to some positive value, such as 4.