1Prima::ExtLists(3) User Contributed Perl Documentation Prima::ExtLists(3)
2
3
4
6 Prima::ExtLists - extended functionality for list boxes
7
9 use Prima qw(ExtLists Application);
10
11 my $vec = '';
12 vec( $vec, 0, 8) = 0x55;
13 Prima::CheckList-> new(
14 items => [1..10],
15 vector => $vec,
16 );
17 run Prima;
18
20 The module is intended to be a collection of list boxes with particular
21 enhancements. Currently the only package is contained is
22 "Prima::CheckList" class.
23
25 Provides a list box, where each item is equipped with a check box. The
26 check box state can interactively be toggled by the enter key; also the
27 list box reacts differently by click and double click.
28
29 Properties
30 button INDEX, STATE
31 Runtime only. Sets INDEXth button STATE to 0 or 1. If STATE is -1,
32 the button state is toggled.
33
34 Returns the new state of the button.
35
36 vector VEC
37 VEC is a vector scalar, where each bit corresponds to the check
38 state of each list box item.
39
40 See also: "vec" in perlfunc.
41
42 Methods
43 clear_all_buttons
44 Sets all buttons to state 0
45
46 set_all_buttons
47 Sets all buttons to state 1
48
50 Dmitry Karasik, <dmitry@karasik.eu.org>.
51
53 Prima, Prima::Lists, examples/extlist.pl
54
55
56
57perl v5.34.0 2021-07-22 Prima::ExtLists(3)