WidgetSetMargin

Syntax

Success = WidgetSetMargin(Widget, Margin)

Description

Sets the margin for all four sides (top, left, bottom, right) of the specified widget simultaneously. The margin defines the space around the widget, outside its border, influencing the spacing between adjacent widgets in a layout.

Parameters

Widget
The handle of the ProGUI widget.

Margin
The margin value (Integer) in device-independent pixels (DIPs) to apply to all four sides.

Return Value

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

Remarks

This is a convenience function to set uniform margins. Setting the margin triggers a layout update. Use the individual `WidgetSetMargin...` functions (e.g., WidgetSetMarginLeft()) to set different margins for each side.

See Also

WidgetGetMargin, WidgetSetMarginLeft, WidgetSetMarginTop, WidgetSetMarginRight, WidgetSetMarginBottom

Supported OS

Windows, Linux