1. The notebook we are building
Figure 2. The Notes page in the running game. The title and Close button belong to the host GUI; the page content comes from another GUI.
Think of the notebook as a frame with interchangeable pages. The host GUI supplies the title, Close button and tabbed panel. Each tab points to a separate content GUI. Clicking Clues replaces the Notes content without opening a second notebook window.
| Part | Example ID | Job |
|---|---|---|
| Host GUI | case_notebook | Opens and closes the whole notebook. |
| Tabbed panel | notebook_tabs | Draws the tab strip and displays the chosen page. |
| Page GUIs | notes_page, clues_page, items_page | Hold each page’s labels, lists and buttons. |
| Clue list | clue_list | Displays rows and writes the chosen row ID to a variable. |
The same arrangement works for a journal, character sheet, quest log, help screen or shop. Start with one page that works, then add more.
