Curses::UI::Buttonbox - Create and manipulate button widgets



NAME

Curses::UI::Buttonbox - Create and manipulate button widgets


CLASS HIERARCHY

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


SYNOPSIS

    use Curses::UI;
    my $cui = new Curses::UI;
    my $win = $cui->add('window_id', 'Window');
    my $buttons = $win->add(
        'mybuttons', 'Buttonbox',
        -buttons   => [
            { 
              -label => '< Button 1 >',
              -value => 1,
              -shortcut => 1 
            },{ 
              -label => '< Button 2 >',
              -value => 2,
              -shortcut => 2 
            }
        ]
    );
    $buttons->focus();
    my $value = $buttons->get();


DESCRIPTION

Curses::UI::Buttonbox is a widget that can be used to create an array of buttons (or, of course, only one button).


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.

 Curses::UI::Buttonbox - Create and manipulate button widgets