WidgetGetMinHeight

Syntax

MinHeight.d = WidgetGetMinHeight(Widget)

Description

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

Parameters

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

Return Value

Returns the minimum height as a floating-point number (Double) in DIPs. If the minimum height was set to automatically fit content using WidgetSetMinHeight() 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 height prevents the layout engine from shrinking the widget below this value, even if its ideal height is smaller or if layout constraints would otherwise make it smaller.

See Also

WidgetSetMinHeight, WidgetGetMinWidth, WidgetSetHeight, WidgetGetHeight

Supported OS

Windows, Linux