Curses::UI::Checkbox - Create and manipulate checkbox widgets |
Curses::UI::Checkbox - Create and manipulate checkbox widgets
Curses::UI::Widget | +----Curses::UI::Container | +----Curses::UI::Buttonbox
use Curses::UI; my $cui = new Curses::UI; my $win = $cui->add('window_id', 'Window');
my $checkbox = $win->add( 'mycheckbox', 'Checkbox', -label => 'Say hello to the world', -checked => 1, );
$checkbox->focus(); my $checked = $checkbox->get();
Curses::UI::Checkbox is a widget that can be used to create a checkbox. A checkbox has a label which says what the checkbox is about and in front of the label there is a box which can have an ``X'' in it. If the ``X'' is there, the checkbox is checked (get will return a true value). If the box is empty, the checkbox is not checked (get will return a false value). A checkbox looks like this:
[X] Say hello to the world
See exampes/demo-Curses::UI::Checkbox in the distribution for a short demo.
-parent, -x, -y, -width, -height, -pad, -padleft, -padright, -padtop, -padbottom, -ipad, -ipadleft, -ipadright, -ipadtop, -ipadbottom, -title, -titlefullwidth, -titlereverse, -onfocus, -onblur
For an explanation of these standard options, see Curses::UI::Widget.
Curses::UI, Curses::UI::Widget, Curses::UI::Common
Copyright (c) 2001-2002 Maurice Makaay. All rights reserved.
Maintained by Marcus Thiesen (marcus@cpan.thiesenweb.de)
This package is free software and is provided ``as is'' without express or implied warranty. It may be used, redistributed and/or modified under the same terms as perl itself.
Curses::UI::Checkbox - Create and manipulate checkbox widgets |