Working with IVBNotebookPage Parts

The following tasks are associated with using an IVBNotebookPage* part in visual composition. Tasks that are common to many parts are described in related topics.

Specifying a page tab
For a PM-compatible notebook, you can specify either a major tab or a minor tab, or neither. A native Windows notebook has only major tabs. Minor tabs mark subsections of sections marked by major tabs. Minor tabs appear when the major tab for their section is selected.

To specify a page tab, open the attribute property in the IVBNotebookPage* property sheet and set the majorTab and minorTab attributes.

defined. Do not specify both a major tab and a minor tab for a page.

Defining tab text
To define text for a tab, set the tabText property in the IVBNotebookPage* property sheet. Enter the text in the value column.

Defining status text
For a PM-compatible notebook, you can show brief text in a status area. To define status text for a page, set the statusText property in the IVBNotebookPage* property sheet. Enter the text in the value column.

Specifying a notebook page composer
A notebook page accepts only one part, typically a composer. By default, an IVBNotebookPage* part is added with a multicell canvas. Note that the canvas does not cover the page, leaving access to the IVBNotebookPage* part for visual composition. Because the the autoPageSize attribute is set to on by default, the canvas fills the page in generated code. If you replace the multicell canvas with another part, size it to leave access to the IVBNotebookPage* part.

Adding an adjacent page
To add a page before or after a notebook page, select Add page on the IVBNotebookPage* pop-up menu. In the submenu, select Before or After. An IVBNotebookPage* part is placed in the notebook.

Deferring creation of a notebook page
You can improve startup performance for your application by deferring creation of notebook pages until they are referenced. To do this, select Defer creation on the IVBNotebookPage* pop-up menu. Be aware that if you connect to a notebook page or to a control on a page, the page window is referenced at startup, and therefore created at that time.

Notifying a part when a page is selected
You can notify a part when the user selects the page tab or turns to the page using a page arrow. To do this, connect the turnedToThisPage event of the notebook page to the part feature that is to be notified. Be aware that this event occurs whenever the user selects the page tab, even if the page is already open. This event is not available for dynamically created pages.


Related procedures
Working with VisualAge User Interface Parts

Related references
IVBNotebookPage
Property Settings -- IVBNotebookPage
Property Settings -- IVBNotebookPage