Tabview

A tab bar plus one page per tab, and each widget you put in it belongs to one of the tabs.

The tabs are still the Tabpages setting, one name a line, and can be edited there. If a tab is taken out of Tabpages by hand, the widgets that were in it are kept in the last tab that is left, and the Problems tab names each one. All three exports make a widget inside the page of its own tab.

Group: Basic · Default size: 240 × 180 · Style parts: Main, Button main, Button items

A dropped Tabview: a tab bar with Tab 1, Tab 2 and Tab 3, the first lit, and an empty page under it.
A Tabview as it is dropped.
The Tabview settings section: Tab position Top, Tab size 40, Tabpages Status and Settings, Tab padding -1, Active tab 0.
Its settings, with the example’s two tabs.
SettingDefaultWhat it does
Tab positionTopWhere the bar sits: Top, Bottom, Left or Right.
Tab size40The bar's height (or width, for Left and Right).
TabpagesTab 1 / Tab 2 / Tab 3One tab per line.
Tab padding-1The room round what is in each tab, in pixels. -1 leaves the theme's own, which is what a Panel has.
Active tab0The tab the board starts on, counted from 0.

Example: two tabs with widgets in each

  1. Drag a Tabview onto the screen and make it the whole screen: X 0, Y 0, Width 320, Height 240.
  2. Under Tabview settings set Tabpages to two lines, Status and Settings.
  3. In the Hierarchy the Tab view has a row for each tab. Drop a Label on the Status row and set its Text to All systems normal; drop a Bar on the same row and give it Y 40.
  4. Drop a Switch and a Label saying Night mode on the Settings row.
  5. Click a tab’s row, or the tab on the canvas, to see it. That only changes what you are looking at: the board starts on Active tab.
The Tabview filling the screen with the Status tab lit: the words All systems normal and a blue bar.
The Status tab.
The same Tabview with the Settings tab lit: a switch and the words Night mode.
The Settings tab.
The Hierarchy: TabView1 with a row for Status holding StatusText and Load, and a row for Settings holding NightMode and NightCaption.
Each tab is a row in the Hierarchy, with its widgets under it.