1Curses::UI::Dialog::CalUesnedrarC(o3n)tributed Perl DocuCmuernsteast:i:oUnI::Dialog::Calendar(3)
2
3
4
6 Curses::UI::Dialog::Calendar - Create and manipulate calendar dialogs
7
9 Curses::UI::Widget
10 |
11 +----Curses::UI::Container
12 |
13 +----Curses::UI::Window
14 |
15 +----Curses::UI::Dialog::Calendar
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::Calendar'
26 );
27 $dialog->modalfocus;
28 $win->delete('mydialog');
29 my $date = $dialog->get();
30
31 # The easy way (see Curses::UI documentation).
32 # --------------------------------------------
33 $date = $cui->calendardialog();
34
36 Curses::UI::Dialog::Calendar is a calendar dialog. This type of dialog
37 can be used to select a date.
38
39 See exampes/demo-widgets in the distribution for a short demo.
40
42 · -title < TEXT >
43
44 Set the title of the dialog window to TEXT.
45
46 · -date < DATE >
47
48 Set the date to start with to DATE. If -date is not defined, today
49 will be used as the startdate.
50
52 · new ( OPTIONS )
53
54 · layout ( )
55
56 · draw ( BOOLEAN )
57
58 · focus ( )
59
60 · modalfocus ( )
61
62 These are standard methods. See Curses::UI::Container for an
63 explanation of these.
64
65 · get ( )
66
67 This method will return the date that was selected or undef if no
68 date was selected.
69
71 · escape
72
73 This will invoke the cancel button, so the calendar dialog returns
74 without selecting any date.
75
77 Curses::UI, Curses::UI::Container, Curses::UI::Buttonbox
78
80 Copyright (c) 2001-2002 Maurice Makaay. All rights reserved.
81
82 Maintained by Marcus Thiesen (marcus@cpan.thiesenweb.de)
83
84 This package is free software and is provided "as is" without express
85 or implied warranty. It may be used, redistributed and/or modified
86 under the same terms as perl itself.
87
88
89
90perl v5.30.0 2019-07-26 Curses::UI::Dialog::Calendar(3)