table of contents
Prima::ExtLists(3) | User Contributed Perl Documentation | Prima::ExtLists(3) |
NAME¶
Prima::ExtLists - extended functionality for list boxes
SYNOPSIS¶
use Prima qw(ExtLists Application); my $vec = ''; vec( $vec, 0, 8) = 0x55; Prima::CheckList-> new( items => [1..10], vector => $vec, ); run Prima;
DESCRIPTION¶
The module is intended to be a collection of list boxes with particular enhancements. Currently, the only package defined here is the "Prima::CheckList" class.
Prima::CheckList¶
Provides a list box class where each item is equipped with a check box. The check box state can interactively be toggled by the enter key; also the list box reacts differently to click and double click.
Properties¶
- Runtime only. Sets INDEXth button STATE to 0 or 1. If the STATE is -1 the
button state is toggled.
Returns the new state of the button.
- vector VEC
- VEC is a vector scalar where each bit corresponds to the checked state of
each list box item.
See also: "vec" in perlfunc.
Methods¶
- Sets all buttons to state 0
- Sets all buttons to state 1
AUTHOR¶
Dmitry Karasik, <dmitry@karasik.eu.org>.
SEE ALSO¶
Prima, Prima::Lists, examples/extlist.pl
2024-08-20 | perl v5.40.0 |