IUP::ScrollBox - [GUI element] container that allows its child to be scrolled
Creates a native container that allows its child to be scrolled. It inherits from IUP::Canvas.
#standard way $mlist = IUP::ScrollBox->new( child=>$child, ANYATTRIBUTE=>'any value' ); #or with just 1 parameter $mlist = IUP::ScrollBox->new($child);
child: (named parameter) reference to an interface element.
Returns: the identifier of the created element, or
undef if an error occurs.
NOTE: You can pass to
CALLBACKNAME=>\&func pairs relevant to this element - see IUP::Manual::02_Elements.
For more info about concept of attributes (setting/getting values etc.) see IUP::Manual::03_Attributes. Attributes specific to this element:
Inherits all attributes and callbacks of the IUP::Canvas, but redefines a few attributes.
will use the background color of the native parent by default.
(creation only) the default value is "NO".
(non inheritable) the default value is "YES".
(creation only) the default value is "YES".
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 IUP::ScrollBox 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.
Unfortunately there are no sample scripts using this element.
The original doc: iupscrollbox.html