WidgetSetMarginTop

Syntax

Success = WidgetSetMarginTop(Widget, Margin)

Description

Sets the top margin for the specified widget. The margin is the space around the widget, outside its border.

Parameters

Widget
The handle of the ProGUI widget.

Margin
The top margin value (Integer) in device-independent pixels (DIPs).

Return Value

Returns #True if the margin was successfully set, or #False if the widget handle was invalid.

Remarks

Setting the margin triggers a layout update.

See Also

WidgetGetMarginTop, WidgetSetMargin, WidgetSetMarginLeft, WidgetSetMarginRight, WidgetSetMarginBottom

Supported OS

Windows, Linux