1Curses::UI::Dialog::QueUssteironC(o3n)tributed Perl DocuCmuernsteast:i:oUnI::Dialog::Question(3)
2
3
4

NAME

6       Curses::UI::Dialog::Question - Pose a simple question to the user
7

CLASS HIERARCHY

9        Curses::UI::Widget
10           |
11           +----Curses::UI::Container
12                   |
13                   +----Curses::UI::Window
14                           |
15                           +----Curses::UI::Dialog::Question
16

SYNOPSIS

18           use Curses::UI;
19           my $cui = new Curses::UI;
20           my $win = $cui->add('window_id', 'Window');
21
22           # The hard way.
23           # -------------
24           my $dialog = $win->add(
25               'mydialog', 'Dialog::Question',
26               -question   => 'How super awesome are you?'
27           );
28           $dialog->modalfocus;
29           $win->delete('mydialog');
30
31           # The easy way (see Curses::UI documentation).
32           # --------------------------------------------
33           my $value = $cui->question(-question => 'How super awesome are you?');
34
35           # or even
36           my $awesomeness = $cui->question('How super awesome are you?');
37

DESCRIPTION

39       Curses::UI::Dialog::Question is a basic question dialog. This type of
40       dialog has a message on it, a TextEntry answer box, and one or more
41       buttons. It can be used to have a user enter some answer in response to
42       a question.
43
44       See exampes/demo-widgets in the distribution for a short demo.
45

OPTIONS

47       ·   -title < TEXT >
48
49           Set the title of the dialog window to TEXT.
50
51       ·   -question < TEXT >
52
53           This option sets the question to show to TEXT. The text may contain
54           newline (\n) characters.
55
56       ·   -buttons < ARRAYREF >
57
58       ·   -selected < INDEX >
59
60       ·   -buttonalignment < VALUE >
61
62           These options sets the buttons that have to be used. For an
63           explanation of these options, see the Curses::UI::Buttonbox
64           documentation.
65

METHODS

67       ·   new ( HASH )
68
69       ·   layout ( )
70
71       ·   draw ( BOOLEAN )
72
73       ·   focus ( )
74
75           These are standard methods. See Curses::UI::Container for an
76           explanation of these.
77
78       ·   get ( )
79
80           This method will call get on the TextEntry object of the dialog and
81           return its returnvalue. See Curses::UI::TextEntry for more
82           information on this.  If the cancel button was pressed, the return
83           value will be undef.
84

SEE ALSO

86       Curses::UI, Curses::UI::Container, Curses::UI::Buttonbox
87

AUTHOR

89       Copyright (c) 2004 Luke Closs <lukec@activestate.com>. All rights
90       reserved.
91
92       Maintained by Marcus Thiesen (marcus@cpan.thiesenweb.de)
93
94       This package is free software and is provided "as is" without express
95       or implied warranty. It may be used, redistributed and/or modified
96       under the same terms as perl itself.
97
98
99
100perl v5.12.0                      2008-12-21   Curses::UI::Dialog::Question(3)
Impressum