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 |
|
Valid Values |
|
Value |
Description |
---|---|
|
Size of the margin depends on the widget, but is normally 5 pixels. |
|
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"
Applies To
- ucolorbox (ColorBox)
- ucolorlist (ColorList)
- ucombobox (Combo Box)
- CommandButton
- DropTarget
- udropdownlist (DropDownList)
- EditBox
- ucontainer (FormContainer)
- egrid (Grid)
- uhtml (HTML Widget)
- ulistbox (ListBox )
- umap (Map)
- umeter (Meter)
- (umonthcalendar) MonthCalendar
- uOcxContainer (OcxContainer)
- uOleContainer (OleContainer)
- uoutputbox (OutputBox)
- upicture (Picture)
- uradiogroup (RadioGroup)
- urtfeditbox (RichEditBox)
- uslider (Slider)
- uspinbutton (SpinButton)
- utab (Tab)
- utabex (TabEx)
- utree (Tree)