LayoutSetScrollBarOverflow

Syntax

Success = LayoutSetScrollBarOverflow(Layout, Flags=#Null)

Description

Defines whether scrollbars are permitted to appear automatically when layout items overflow the container boundaries.

Parameters

Layout
The layout handle. Uses the current layout if #Null.

Flags (optional)
Can be #PG_Layout_ScrollBar_NoHorizontal to prevent the horizontal scrollbar, #PG_Layout_ScrollBar_NoVertical to prevent the vertical scrollbar, or #PG_Layout_ScrollBar_None to prevent both. Default is #Null (allow automatic scrollbars).

Return Value

Returns #True on success.

Remarks

By default, layout containers automatically show scrollbars when child widgets require more space than the container allows. Disabling scrollbars forces clipping of the content without providing user controls to scroll.

See Also

LayoutGetScrollBarOverflow

Supported OS

Windows, Linux