24.05.2014 Views

AIX Version 4.3 Differences Guide

AIX Version 4.3 Differences Guide

AIX Version 4.3 Differences Guide

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

the same area just like real-world book pages. Tabs simulate notebook tabs.<br />

Major tabs are used for dividing pages into several sections, and minor tabs are<br />

used for subdividing the sections. The page scroller is used for switching the<br />

current page back and forth. The Note Book also provides tab scrollers for<br />

scrolling major and minor tabs when it cannot display all tabs. Tab scrollers are<br />

visible and enabled only when there is insufficient space to display all the major<br />

tabs or the minor tabs appropriate to the page. A complex implementation of a<br />

Note Book can be seen in Figure 47.<br />

Major tabs displayed on the side of the Note Book allow the user to quickly<br />

access data. Once a primary tab is chosen (for example, a chapter), the minor<br />

tabs appear in the orthogonal direction (for example, sections) and allow further<br />

indexing inside the relevant parts of the document.<br />

Pages, tabs, status areas, and the page scroller are created by the application as<br />

children of the Note Book widget. Any Motif widget may be a page of the Note<br />

Book. A major tab, or a minor tab, may be attached to a page by creating a tab<br />

child of the Note Book and setting a constraint to the page number of the targeted<br />

page. Note that the notebook widget makes heavy use of the traits of its child<br />

widgets to invoke their class methods. A tab, either a major tab or a minor tab,<br />

must be a Motif widget with a trait that can be activated (such as a push button).<br />

Tabs in a Note Book are associated with a page number not attached to any<br />

actual page widget. Therefore, it is possible to have a tab with an empty page.<br />

Destroying a page widget leaves an empty page. It does not tear the page out of<br />

the XmNotebook.<br />

The page scroller child is not associated with a certain page. There is only one<br />

valid page scroller per Note Book, and it must carry the navigator trait. Since the<br />

application of the Note Book can provide page numbers, it is possible to have<br />

duplicate pages and empty pages. An empty page is a page slot where no page<br />

is inserted. This page displays just a blank background unless the application<br />

provides some visual information to this area while processing. Note that this<br />

feature is very useful for applications that have to display hundreds (or even<br />

thousands) of pages. It is not necessary to have hundreds of physical pages in<br />

memory. An application may actually use only one physical empty page, provide<br />

adequate tab indexing for the real number of pages it supports, and only update<br />

the contents of the (single) physical page with the information when required.<br />

The Note Book widget is a versatile tool. Typical uses are:<br />

• The display of on-line documentation, with quick access to information by<br />

using the tabs index.<br />

• Reducing the real estate occupied by an application on the screen by making<br />

visible only the information required at that particular moment. A Note Book<br />

allows a developer to very quickly implement any kind of agenda or calendar<br />

application. It is the optimal base for a card filer application and provides good<br />

support for a hypertext applications.<br />

• Dialog boxes that have variants. For example, a property sheet dialog box for<br />

a document editor might have a font part and a margin part as pages of the<br />

Note Book.<br />

A Note Book allows a developer to very quickly prototype all kinds of applications<br />

that display organized information, such as a card filer, an agenda, or a calendar<br />

application.<br />

216 <strong>AIX</strong> <strong>Version</strong> <strong>4.3</strong> <strong>Differences</strong> <strong>Guide</strong>

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!