Skip to reading
Panels, Tabs & List Boxes

6. Turn a panel into tabs

Edition 0.86.4.1 HF1

0.86.4.1 Hotfix 1 edition. Earlier lessons and screenshots retain their original version context; revised references and supplements describe the newer behavior.

Download PDFView illustrations

1. Create the host GUI, Workshop Notebook, with ID case_notebook. Make its window 1120 × 660 and center it.

2. Add a title Label and a Close Button. Add a Panel with ID notebook_tabs at X 24, Y 76, Width 1072, Height 544.

3. Select the panel, open Type Settings and enable Tabbed Panel.

4. Enter the three tab entries shown on the next page. Set Editor Active Tab to notes.

5. Give the tab font a size of 22. Keep the host trigger-controlled so you can open it deliberately from a button or action.

Figure 9. Tabbed Panel enables the tab strip. Tabs supplies the links; Editor Active Tab sets the initial page.

For a notebook that should block interaction with the room while open, use a modal host GUI. The embedded content GUIs can remain nonmodal; the host is the window the player opens and closes.

Page 11 of 50Permalink
Go to page