Marcus Thiesen > Curses-UI-0.95 > Curses::UI::Checkbox

Download:
Curses-UI-0.95.tar.gz

Dependencies

Annotate this POD

CPAN RT

New  16
Open  3
View Bugs
Report a bug
Module Version: 1.10   Source   Latest Release: Curses-UI-0.9607

NAME ^

Curses::UI::Checkbox - Create and manipulate checkbox widgets

CLASS HIERARCHY ^

 Curses::UI::Widget
    |
    +----Curses::UI::Container
            |
            +----Curses::UI::Buttonbox

SYNOPSIS ^

    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();

DESCRIPTION ^

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.

STANDARD OPTIONS ^

-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.

WIDGET-SPECIFIC OPTIONS ^

METHODS ^

DEFAULT BINDINGS ^

SEE ALSO ^

Curses::UI, Curses::UI::Widget, Curses::UI::Common

AUTHOR ^

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.