Curses::UI::Listbox(3pm) User Contributed Perl Documentation Curses::UI::Listbox(3pm)

Curses::UI::Listbox - Create and manipulate listbox widgets

 Curses::UI::Widget
 Curses::UI::Searchable
    |
    +----Curses::UI::Listbox

    use Curses::UI;
    my $cui = new Curses::UI;
    my $win = $cui->add('window_id', 'Window');
    my $listbox = $win->add(
        'mylistbox', 'Listbox',
        -values    => [1, 2, 3],
        -labels    => { 1 => 'One', 
                        2 => 'Two', 
                        3 => 'Three' },
        -radio     => 1,
    );
    $listbox->focus();
    my $selected = $listbox->get();

Curses::UI::Listbox is a widget that can be used to create a couple of different kinds of listboxes. These are:

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

2021-01-01 perl v5.32.0