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

Download:
Curses-UI-0.9609.tar.gz

Dependencies

Annotate this POD

CPAN RT

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

NAME ^

Curses::UI::Notebook - Create and manipulate notebook widgets.

CLASS HIERARCHY ^

 Curses::UI::Widget
    |
    +----Curses::UI::Container
            |
            +----Curses::UI::Notebook

SYNOPSIS ^

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

    my $notebook = $win->add(undef, 'Notebook');
    my $page1 = $notebook->add_page('page 1');
    $page1->add(
        undef, 'Label',
        -x    => 15,
        -y    => 6,
        -text => "Page #1.",
    );
    my $page2 = $notebook->add_page('page 2');
    $page2->add(
        undef, 'Label',
        -x    => 15,
        -y    => 6,
        -text => "Page #2.",
    );
    my $page3 = $notebook->add_page('page 3', -on_activate => \&sub );
    $page3->add(
        undef, 'Label',
        -x    => 15,
        -y    => 6,
        -text => "Page #3.",
    );
    $notebook->focus;
    $cui->mainloop;

DESCRIPTION ^

This package implements a notebook widget similar to that found in Motif. A notebook holds several windows, or pages, only one of which is visible at any given time; tabs at the top of the widget list the pages that are available. In this way, a great deal of information can be fit into a relatively small screen area. [Windows users might recognize this as a tabbed dialog.]

STANDARD OPTIONS ^

-x, -y, -width, -height, -pad, -padleft, -padright, -padtop, -padbottom, -ipad, -ipadleft, -ipadright, -ipadtop, -ipadbottom, -border, -sbborder, -bg, -fg, -intellidraw, -onchange, -onblur.

See Curses::UI::Widget for a discussion of each of these options.

Note that -border is enabled and both -ipadleft and -ipadright are set to 1 by default when creating notebook objects.

WIDGET-SPECIFIC OPTIONS ^

METHODS ^

SEE ALSO ^

Curses::UI, Curses::UI::Container, Curses::UI::Widget

AUTHOR ^

George A. Theall, <theall@tifaware.com>

COPYRIGHT AND LICENSE ^

Copyright (c) 2004, George A. Theall. All rights reserved.

This script is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

syntax highlighting: