Button size

width = integer

The width of the button.

Buttons have a standard appearance unless the image clause is used (push buttons only). It is not normally necessary to specify a width for an image button, as the image’s own size is used. If a width is specified the image is stretched or reduced as necessary.

If a proportional font is used for a push button label, it is recommended that the width be always specified.

From Sculptor 5 onwards, the width may be expressed in pixels or in columns; the !chargrid declaration specifies which type is in use. In earlier versions columns must be used. See Pixel and character positioning.

Default: Determined by the length and font of the button label. For image buttons, the width of the image is the default.

height = integer

The height of the button. It is rarely desirable to increase the button height, as this merely occupies space without offering any additional functionality.

It is not normally necessary to specify a height for an image button, as the image’s own size is used. If a height is specified the image is stretched or reduced as necessary.

From Sculptor 5 onwards, the height may be expressed in pixels or in rows; the !chargrid declaration specifies which type is in use. In earlier versions rows must be used. See Pixel and character positioning.

Default: Determined by the font of the button label. For image buttons, the height of the image is the default.


RELATED TOPICS

Buttons

Button label

Button image

Fonts