Padding

Size of the padding around the label content of a command button or TabEx tab, in pixels.

"padding= {TopPadding} ,{RightPadding}, {BottomPadding} ,{LeftPadding}"

Value

Description

""

None (equivalent to "padding=")

n,n,n,n

A comma-separated list that contains four values defining the padding on each side. Each value is a positive integer, optionally followed by px, representing the number of pixels.

Usage

Dynamic?

Yes

Supported in Grid?

 

Dependencies:

For the Command Button, this property is only applicable if Representation is Uniface.

Description

When setting this property in ProcScript or the usys.ini file, all four padding values must be specified, even if they are empty. For example, to set the bottom padding to 3 pixels and use the default size for all other padding values, set the property as: "padding=,,3px,".

The larger the padding values are, the less room there is for content.

If there are any errors in the padding string, the Padding property is ignored.

Using in ProcScript

You can use $properties or $fieldproperties to set or get the property and its value. For more information, see $properties and $fieldproperties.

$fieldproperties(BTN) = "padding=3,2,3,2"