1Curses::UI::RadiobuttonUbsoexr(3C)ontributed Perl DocumeCnutrasteiso:n:UI::Radiobuttonbox(3)
2
3
4

NAME

6       Curses::UI::Radiobuttonbox - Create and manipulate radiobuttonbox
7       widgets
8

CLASS HIERARCHY

10        Curses::UI::Widget
11        Curses::UI::Searchable
12           |
13           +----Curses::UI::Listbox
14                   |
15                   +----Curses::UI::Radiobuttonbox
16

SYNOPSIS

18           use Curses::UI;
19           my $cui = new Curses::UI;
20           my $win = $cui->add('window_id', 'Window');
21
22           my $radiobuttonbox = $win->add(
23               'myradiobuttonbox', 'Radiobuttonbox',
24               -values    => [1, 2, 3],
25               -labels    => { 1 => 'One',
26                               2 => 'Two',
27                               3 => 'Three' },
28           );
29
30           $radiobuttonbox->focus();
31           my $selected = $radiobuttonbox->get();
32

DESCRIPTION

34       Curses::UI::Radiobuttonbox is a widget that can be used to create a
35       radiobutton listbox. Only one value can be selected at a time. This
36       kind of listbox looks somewhat like this:
37
38        +----------+
39        |< > One   |
40        |<o> Two   |
41        |< > Three |
42        +----------+
43
44       A Radiobuttonbox is derived from Curses::UI::Listbox. The only special
45       thing about this class is that the -radio option is forced to a true
46       value. So for the usage of Curses::UI::Radiobuttonbox see
47       Curses::UI::Listbox).
48

SEE ALSO

50       Curses::UI, Curses::UI::Listbox,
51

AUTHOR

53       Copyright (c) 2001-2002 Maurice Makaay. All rights reserved.
54
55       Maintained by Marcus Thiesen (marcus@cpan.thiesenweb.de)
56
57       This package is free software and is provided "as is" without express
58       or implied warranty. It may be used, redistributed and/or modified
59       under the same terms as perl itself.
60
61
62
63perl v5.36.0                      2022-07-22     Curses::UI::Radiobuttonbox(3)
Impressum