Blitz3D+ Command Reference

SetButtonPadding button,horizontal,vertical

Parameters

button - push, default or cancel button handle

horizontal - space on each side of the text, 0 to 1024 logical pixels; initially 16
vertical - space above and below the text, 0 to 1024 logical pixels; initially 8

Description

Sets the space around a styled button's text.

Padding is in logical pixels, independent of monitor DPI, and the preferred sizes also include the border. This command does not resize the gadget.

Native appearance and high contrast keep Windows' own text layout and ideal size; the padding is retained for switching back to a styled appearance. Check boxes, radio buttons, negative values and values above 1024 cause a runtime error.

See the complete 10_Modern_Control_Showcase.bb sample.

Requires Extended mode.

See also: SetButtonAppearance, ButtonPreferredWidth, ButtonPreferredHeight.

Index