1Curses::UI::Dialog::StaUtsuesr(3C)ontributed Perl DocumeCnutrasteiso:n:UI::Dialog::Status(3)
2
3
4
6 Curses::UI::Dialog::Status - Create and manipulate status dialogs
7
9 Curses::UI::Widget
10 |
11 +----Curses::UI::Container
12 |
13 +----Curses::UI::Window
14 |
15 +----Curses::UI::Dialog::Status
16
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::Status',
26 -message => 'Hello, world!',
27 );
28
29 $dialog->draw();
30
31 $win->delete('mydialog');
32
33 # The easy way (see Curses::UI documentation).
34 # --------------------------------------------
35 $cui->status( -message => 'Some message' );
36
37 # or even:
38 $cui->status( 'Some message' );
39
40 $cui->nostatus;
41
43 Curses::UI::Dialog::Status is not really a dialog, since the user has
44 no way of interacting with it. It is merely a way of presenting status
45 information to the user of your program.
46
47 See exampes/demo-Curses::UI::Dialog::Status in the distribution for a
48 short demo.
49
51 • -title < TEXT >
52
53 Set the title of the dialog window to TEXT.
54
55 • -message < TEXT >
56
57 This option sets the initial message to show to TEXT.
58
60 • new ( OPTIONS )
61
62 • layout ( )
63
64 • draw ( BOOLEAN )
65
66 These are standard methods. See Curses::UI::Container for an
67 explanation of these.
68
69 • message ( TEXT )
70
71 This method will update the message of the status dialog to TEXT.
72 For this update to show, you will have to call the draw method of
73 the progress dialog.
74
76 Curses::UI, Curses::UI::Container
77
79 Copyright (c) 2001-2002 Maurice Makaay. All rights reserved.
80
81 Maintained by Marcus Thiesen (marcus@cpan.thiesenweb.de)
82
83 This package is free software and is provided "as is" without express
84 or implied warranty. It may be used, redistributed and/or modified
85 under the same terms as perl itself.
86
87
88
89perl v5.36.0 2022-07-22 Curses::UI::Dialog::Status(3)