WidgetGetMinWidth

Syntax

MinWidth.d = WidgetGetMinWidth(Widget)

Description

Retrieves the minimum width setting for the specified widget in device-independent pixels (DIPs).

Parameters

Widget
The handle of the ProGUI widget whose minimum width is to be retrieved.

Return Value

Returns the minimum width as a floating-point number (Double) in DIPs. If the minimum width was set to automatically fit content using WidgetSetMinWidth() with #PG_Widget_FitContent, this function will return #PG_Widget_FitContent (-1). Returns 0.0 or #False if the widget handle is invalid.

Remarks

The minimum width prevents the layout engine from shrinking the widget below this value, even if its ideal width is smaller or if layout constraints would otherwise make it smaller.

See Also

WidgetSetMinWidth, WidgetGetMinHeight, WidgetSetWidth, WidgetGetWidth

Supported OS

Windows, Linux