Home Search

DriveWorks Solo 22
Padding, Input Padding, Unit Padding

Send Feedback

Padding, Input Padding, Unit Padding

Padding - Specifies the padding of the control.

Input Padding - Specifies the padding of the control's input area.

Padding does not increase the size of the Control, but will control:

  • The point at which line wrapping occurs when text reaches the edges.
  • The offset of the text from the background color.
  • The offset of the text from any border radius that may crop it.

Property Type

Property Type: Static

A Static property can be made Dynamic (to control the value from a rule).

See Change a Static Property to a Dynamic Property.

Default Value

When the control is added the Default Value of this property will be set to:

  • Padding - 0
  • Input Padding (Text Box, Combo Box, Numeric Text Box, Spin Button) - 0 2
  • Unit Padding - 0 2

To change the default Static value:

Ensure the property is a static property (It will display the gray orb alongside the property name).

The default value of the static property can be changed by:

  1. Click in the property for the control to be changed
  2. Enter the required value.

To build a rule to control the value:

See Build a Rule for the Dynamic Property.

Examples

Example 1 - Using a single value

Property Value

2

Or

2px

A value of 2px will be applied to the top, right, bottom and left padding.

Example 2 - Using two values

Property Value

2 5

Or

2px 5px

Or

2|5

A value of 2px will be applied to the top and bottom paddings and a value of 5px will be applied to the right and left paddings.

Example 3 - Using three values

Property Value

2 5 10

Or

2px 5px 10px

Or

2|5|10

A value of 2px will be applied to the top padding, a value of 5px will be applied to the right and left paddings and 10px will be applied to the bottom padding.

Example 4 - Using four values

Property Value

2 5 10 1

Or

2px 5px 10px 1px

Or

2|5|10|1

A value of 2px will be applied to the top padding, a value of 5px will be applied to the padding, 10px will be applied to the bottom padding and 1px will be applied to the left padding.

Value set in Form Designer. For DriveWorks projects static properties can be made Dynamic by double clicking the gray radio button.