Attach Margin (AttachMargin)

Size of the margin in pixels, on all sides of the widget, when it is attached to at least one window border. The value can be the number of pixels (for example, 2px) or classic.

Attribute

Value

Physical Property Name

AttachMargin

Property Type

String

Dynamic?

Yes

Default

classic (= 5 pixels)

Valid Values

Numberpx

Value

Description

classic (default)

Size of the margin depends on the widget, but is normally 5 pixels.

Numberpx

Size of the margin in pixels, on all sides of the widget

Usage

Dynamic?

Yes

Supported in Grid?

No

Dependencies:

None

Description

This property is especially useful for the form container widget, where you may not want a visible border around nested forms. In this case, you can specify "attachmargin=0px".

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.

$properties(FLD) = "attach="top right;attachmargin=0px"

Related Topics