WinStudio
About Notebook and Notebook Tab Components
Notebook and notebook tab components allow you to reuse screen space.
A notebook is a component that contains one or more tabs. Each tab can
contain other components such as edit boxes, grids, buttons, and so on.
The components contained in a tab are visible only when the tab is selected.
If a notebook contains too many tabs to fit horizontally,
WinStudio automatically supplies horizontal scroll bars. If you prefer
to stack notebook tabs instead of using scroll bars, set the No Scroll
property.
For most forms, you can:
Adding a notebook
To add a notebook component:
- With a form open, enter Design
Mode.
- On the Controls tab of the Toolbox, click Notebook.
- Click-and-drag on the form where you want to locate the notebook
and to set its dimensions.
- Use the component properties sheet to specify properties of the
notebook.
Adding a notebook tab
To add a notebook tab component:
- Make sure you are in Design
Mode for the form that contains the notebook component.
- Select the notebook component and, in its upper left corner, double
click the "Edit notebook tab(s)" icon.
- In the
Edit Contained Components
dialog box, click Add
(near the bottom of the dialog box).
- Optionally, configure the new tab directly in the Edit
Contained Components dialog box.
Configuring a notebook tab
To configure an existing notebook tab, you can take one of these actions:
- Double click the icon in the upper left corner of the notebook
component and use the Edit
Contained Components dialog box.
- In the component property sheet for the form, select the
Components tab
and then in the drop-down list, select the notebook tab. Then use
the notebook tab's property sheet to configure the tab.
Deleting a notebook tab
To delete a tab from a notebook:
- Make sure you are in Design
Mode for the form that contains the notebook component.
- Select the notebook component and, in its upper left corner, double
click the "Edit notebook tab(s)" icon.
- In the Edit
Contained Components dialog box, click the Delete
icon (near the
bottom of the dialog box).
- When prompted, confirm the deletion.
Related Topics
Setting
Form, Component, and Object Properties
Edit
Contained Components Dialog Box