Creates a native container that allows its child to be scrolled. It inherits from IupCanvas.
Ihandle* IupScrollBox(Ihandle* child); [in C] iup.scrollbox{child: ihandle} -> (elem: ihandle) [in Lua] scrollbox(child) [in LED]
child: Identifier of an interface element which will receive the box. It can be NULL.
Returns: the identifier of the created element, or NULL if an error occurs.
Inherits all attributes and callbacks of the IupCanvas, but redefines a few attributes.
BGCOLOR: will use the background color of the native parent by default.
BORDER (creation only): the default value is "NO".
EXPAND (non inheritable): the default value is "YES".
SCROLLBAR (creation only): the default value is "YES".
CLIENTSIZE, CLIENTOFFSET: also accepted.
The box allows the application to create a virtual space for the dialog that is actually larger than the visible area. The current size of the box defines the visible area. The natural size of the child (and its children) defines the virtual space size. So the IupScrollBox does not depend on its child size or expansion, and its natural size is always 0x0.
The user can move the box contents by dragging the background. Also the mouse wheel scrolls the contents vertically.
The box can be created with no elements and be dynamic filled using IupAppend or IupInsert.