SCROLLBAR

IUP - Portable User Interface

SCROLLBAR

Associates a horizontal and/or vertical scrollbar to the element.

Value

"VERTICAL", "HORIZONTAL", "YES" (both) or "NO" (none).

Default: "NO"

Notes

The scrollbar allows you to create a virtual space associated to the element. In the image below, such space is marked in red, as well as the attributes that affect the composition of this space. In green you can see how these attributes are reflected on the scrollbar.

Hence you can clearly deduce that POSX is limited to XMIN and XMAX-DX, orĀ  XMIN<=POSX<=XMAX-DX.

When the virtual space has the same size as the canvas, DX equals XMAX-XMIN, the scrollbar can be automatically hidden. See the attribute XAUTOHIDE.

scrollbar.gif (2113 bytes)

IupList and IupMultiline scrollbars are automatically managed.

Affects

IupList, IupMultiline, IupCanvas, POSX, XMIN, XMAX, DX, XAUTOHIDE, POSY, YMIN, YMAX, DY, YAUTOHIDE.