1Curses::UI::Dialog::ErrUosre(r3)Contributed Perl DocumenCtuartsieosn::UI::Dialog::Error(3)
2
3
4
6 Curses::UI::Dialog::Error - Create and manipulate error dialogs
7
9 Curses::UI::Widget
10 |
11 +----Curses::UI::Container
12 |
13 +----Curses::UI::Window
14 |
15 +----Curses::UI::Dialog::Basic
16 |
17 +----Curses::UI::Dialog::Error
18
20 use Curses::UI;
21 my $cui = new Curses::UI;
22 my $win = $cui->add('window_id', 'Window');
23
24 # The hard way.
25 # -------------
26 my $dialog = $win->add(
27 'mydialog', 'Dialog::Error',
28 -message => 'The world has gone!'
29 );
30 $dialog->focus;
31 $win->delete('mydialog');
32
33 # The easy way (see Curses::UI documentation).
34 # --------------------------------------------
35 $cui->error(-message => 'The world has gone!');
36
37 # or even:
38 $cui->error('The world has gone!');
39
41 Curses::UI::Dialog::Error is a basic error dialog. It is almost the
42 same as Curses::UI::Dialog::Basic, except for the fact that a warning
43 sign is drawn to the left of the message using ASCII "art":
44
45 _
46 / \
47 / ! \
48 /_____\
49
50 Since this class is very closely related to the basic dialog, see
51 Curses::UI::Dialog::Basic for a description of the options and methods
52 that you can use.
53
55 Curses::UI, Curses::UI::Dialog::Basic
56
58 Copyright (c) 2001-2002 Maurice Makaay. All rights reserved.
59
60 Maintained by Marcus Thiesen (marcus@cpan.thiesenweb.de)
61
62 This package is free software and is provided "as is" without express
63 or implied warranty. It may be used, redistributed and/or modified
64 under the same terms as perl itself.
65
66
67
68perl v5.32.1 2021-01-27 Curses::UI::Dialog::Error(3)