Shawn Boyette > Curses-UI-0.9609 > Curses::UI::Calendar

Download:
Curses-UI-0.9609.tar.gz

Dependencies

Annotate this POD (1)

CPAN RT

New  35
Open  6
View/Report Bugs
Module Version: 1.10   Source  

NAME ^

Curses::UI::Calendar - Create and manipulate calendar widgets

CLASS HIERARCHY ^

 Curses::UI::Widget
    |
    +----Curses::UI::Calendar

SYNOPSIS ^

    use Curses::UI;
    my $cui = new Curses::UI;
    my $win = $cui->add('window_id', 'Window');

    my $calendar = $win->add(
        'mycalendar', 'Calendar',
    -date    => '2002-1-14'
    );

    $calendar->focus();
    my $date = $calendar->get();

DESCRIPTION ^

Curses::UI::Calendar is a widget that can be used to create a calendar in which the user can select a date. The calendar widget looks like this:

  +----------------------+
  | mmm dd          yyyy | 
  +----------------------+
  | su mo tu we th fr sa |
  |                      |
  |       01 02 03 04 05 |
  | 06 07 08 09 10 11 12 |
  | 13 14 15 16 17 18 19 |
  | 20 21 22 23 24 25 26 |
  | 27 28 29 30 31       |
  +----------------------+

See exampes/demo-Curses::UI::Calendar in the distribution for a short demo.

STANDARD OPTIONS ^

-parent, -x, -y, -width, -height, -pad, -padleft, -padright, -padtop, -padbottom, -ipad, -ipadleft, -ipadright, -ipadtop, -ipadbottom, -title, -titlefullwidth, -titlereverse, -onfocus, -onblur

For an explanation of these standard options, see Curses::UI::Widget.

Remark: -width and -height can be set, but this widget really want to have its content space at a minimum size. If your -width or -height is not large enough, the widget will automatically fix its value.

WIDGET-SPECIFIC OPTIONS ^

METHODS ^

DEFAULT BINDINGS ^

SEE ALSO ^

Curses::UI, Curses::UI::Widget, Curses::UI::Common

AUTHOR ^

Copyright (c) 2001-2002 Maurice Makaay. All rights reserved.

Maintained by Marcus Thiesen (marcus@cpan.thiesenweb.de)

This package is free software and is provided "as is" without express or implied warranty. It may be used, redistributed and/or modified under the same terms as perl itself.

syntax highlighting: