GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages


Manual Reference Pages  -  TK::NOTEBOOK (3)

.ds Aq ’

NAME

Tk::NoteBook - display several windows in limited space with notebook metaphor.

CONTENTS

SYNOPSIS



  use Tk::NoteBook;
  ...
  $w = $frame->NoteBook();
  $page1 = $w->add("page1", options);
  $page2 = $w->add("page2", options);
  ...
  $page2 = $w->add("page2", options);



DESCRIPTION

The NoteBook widget provides a notebook metaphor to display several windows in limited space. The notebook is divided into a stack of pages of which only one is displayed at any time. The other pages can be selected by means of choosing the visual tabs at the top of the widget. Additionally, the <Tab> key may be used to traverse the pages. If <B>-underlineB> is used, Alt- bindings will also work.

The widget takes all the options that a Frame does. In addition, it supports the following options:
<B>-dynamicgeometryB> If set to false (default and recommended), the size of the NoteBook will match the size of the largest page. Otherwise the size will match the size of the current page causing the NoteBook to change size when different pages of different sizes are selected.
<B>-ipadxB> The amount of internal horizontal padding around the pages.
<B>-ipadyB> The amount of internal vertical padding around the pages.
<B>-backpagecolorB> The background color of the tabs and back page.
<B>-disabledforegroundB> XXX
<B>-focuscolorB> The color of the focus border around the tabs.
<B>-fontB> The font of the tab labels.
<B>-inactivebackgroundB> XXX
<B>-tabpadxB> Horizonzal padding around the tab label.
<B>-tabpadyB> Vertical padding around the tab label.

METHODS

The following methods may be used with a NoteBook object in addition to standard methods.
<B>add(B>pageName, options<B>)B> Adds a page with name pageName to the notebook. Returns an object of type <B>FrameB>. The recognized options are:
<B>-anchorB> Specifies how the information in a tab is to be displayed. Must be one of <B>nB>, <B>neB>, <B>eB>, <B>seB>, <B>sB>, <B>swB>, <B>wB>, <B>nwB> or <B>centerB>.
<B>-bitmapB> Specifies a bitmap to display on the tab of this page. The bitmap is displayed only if none of the <B>-labelB> or <B>-imageB> options are specified.
<B>-imageB> Specifies an image to display on the tab of this page. The image is displayed only if the <B>-labelB> option is not specified.
<B>-labelB> Specifies the text string to display on the tab of this page.
<B>-justifyB> When there are multiple lines of text displayed in a tab, this option determines the justification of the lines.
<B>-createcmdB> Specifies a callback to be called the first time the page is shown on the screen. This option can be used to delay the creation of the contents of a page until necessary. It can be useful in situations where there are a large number of pages in a NoteBook widget; with <B>-createcmdB> you do not have to make the user wait until all pages are constructed before displaying the first page.
<B>-raisecmdB> Specifies a callback to be called whenever this page is raised by the user.
<B>-stateB> Specifies whether this page can be raised by the user. Must be either <B>normalB> or <B>disabledB>.
<B>-underlineB> Specifies the integer index of a character to underline in the tab. This option is used by the default bindings to implement keyboard traversal for menu buttons and menu entries. 0 corresponds to the first character of text displayed on the widget, 1 to the next character and so on.
<B>-wraplengthB> This option specifies the maximum line length of the label string on this tab. If the line length of the label string exceeds this length, then it is wrapped onto the next line so that no line is longer than the specified length. The value may be specified in any standard forms for screen distances. If this value is less than or equal to 0, then no wrapping is done: lines will break only at newline characters in the text.
<B>delete(B>pageName<B>)B> Deletes the page identified by pageName.
<B>pagecget(B>pageName, -option<B>)B> Returns the current value of the configuration option given by -option in the page given by pageName. Option may have any of the values accepted in the <B>addB> method.
<B>pageconfigure(B>pageName, options<B>)B> Like configure for the page indicated by pageName. Options may be any of the options accepted by the <B>addB> method.
<B>pagesB> Returns a list consisting of the names of all currently defined pages, i.e., those created with the <B>addB> method.
<B>page_widget(B>pageName<B>)B> Returns the page with name pageName.
<B>raise(B>pageName<B>)B> Raise the page identified by pageName.
<B>B>raised()<B>B> Returns the name of the currently raised page.
<B>geometryinfoB> Return the dimensions of the tab area.
<B>identify(B>x,y<B>)B> Identify the tab’s page name under the specified coordinates. Return an empty string if there’s no tab.
<B>info(‘‘pages’’)B> Return a list of all pages.
<B>info(‘‘focus’’)B> Return the page name of the tab with the current focus.
<B>info(‘‘focusnext’’)B> Return the page name of the tab which would receive the next focus.
<B>info(‘‘focusprev’’)B> Return the page name of the tab which had the previous focus.
<B>info(‘‘active’’)B> Return the page name of the active tab.

BUGS

The options -width and -height do not work.

AUTHORS

Rajappa Iyer <rsi@earthling.net> Nick Ing-Simmons <nick@ni-s.u-net.com>

This code and documentation was derived from NoteBook.tcl in Tix4.0 written by Ioi Lam. It may be distributed under the same conditions as Perl itself.

Search for    or go to Top of page |  Section 3 |  Main Index


perl v5.20.3 NOTEBOOK (3) 2013-11-15

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with manServer 1.07.