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.
undef
NOTE: You can pass to new() other ATTRIBUTE=>'value' or CALLBACKNAME=>\&func pairs relevant to this element - see IUP::Manual::02_Elements.
new()
ATTRIBUTE=>'value'
CALLBACKNAME=>\&func
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.
The box can be created with no elements and be dynamic filled using Append or Insert.
Unfortunately there are no sample scripts using this element.
The original doc: iupscrollbox.html
To install IUP, copy and paste the appropriate command in to your terminal.
cpanm
cpanm IUP
CPAN shell
perl -MCPAN -e shell install IUP
For more information on module installation, please visit the detailed CPAN module installation guide.