Notebook constraints resource panel

The Notebook constraints resource panel is used to configure the relationship between children of the Notebook widget.

Children of the Notebook are assumed to perform a particular role, determined initially by the child type. For example, the Notebook by default assumes that any Button added as a child will form a Tab, and any Manager will in general act as a Page.

The association between a Tab and a Page is performed using the Page Number resource: if a Button and another "page" child are assigned the same page number, pressing the Button will cause the given page child to be displayed.

Note that the Notebook has an internal algorithm which automatically assigns page numbers to children in the order in which they are added, so that it is not always necessary to explicitly assign page numbers to children in order to achieve the required effect. An exception is where the XmNlastPageNumber resource of the Notebook has been set by the programmer: once applied, the internal page allocation algorithms are disabled, and the programmer must explicitly specify all pages by hand.

For more information on the Notebook in general, and specific resources in particular, consult a suitable Motif Reference manual, or the manual pages for XmNotebook(3X).

See also: