This is documentation for Mathematica 8, which was
based on an earlier version of the Wolfram Language.
View current documentation (Version 11.2)

TabView

TabView
represents an object in which clicking the tab with label displays .
TabView
makes the i^(th) tab be the one currently selected.
TabView
associates values with successive tabs, and makes the tab with value v be the one currently selected.
TabView
takes the tab labels to be successive integers.
  • TabView[list, Dynamic[s]] takes the selected tab to be specified by the dynamically updated current value of s, with the value of s being reset if a different tab is selected.
  • The following options can be given:
Alignment{Automatic,Automatic}how to align objects in the display area
AppearanceAutomaticthe overall appearance of the TabView
BaselinePositionAutomatichow to align with a surrounding text baseline
BaseStyle{}base style specifications for the TabView
ControlPlacement{Automatic,Automatic}where to place the tabs
EnabledAutomaticwhether the tabs are enabled, or grayed out
FrameMarginsAutomaticmargins inside the overall frame
ImageMargins0margins around the display area
ImageSizeAllthe overall image size for the display area
LabelStyle{}style specifications for the tab area
  • With the default option setting ImageSize->All, TabView always leaves space for the largest of the to be displayed, so that its overall size does not change. »
  • If any of the are Null, the corresponding tabs are left blank. »
  • Appearance specifies that only a limited number of tabs should be displayed at a time, with controls to navigate through different "pages" of tabs.
  • Appearance specifies that only up to n tabs should be displayed at a time.
  • TabView by default displays the in style, which typically uses the system button font.
  • The settings for BaseStyle and LabelStyle are appended to the default styles typically given by the and styles in the current stylesheet.
Use default labels for tabs:
Insert labels for each element:
Use default labels for tabs:
In[1]:=
Click for copyable input
Out[1]=
 
Insert labels for each element:
In[1]:=
Click for copyable input
Out[1]=
Use graphics as content in TabView:
TabView can contain any expression, including Manipulate:
TabView can be nested:
Use any expression as a label:
Use strings as labels:
Put the labels into text style:
Use Null to indicate a blank tab label:
By default, a TabView leaves enough space to display without ever resizing:
With ImageSize->Automatic, TabView resizes for each pane:
Start with tab 2 selected:
Select the tab with value :
By default the setting is based on position:
Use the to have be the setting:
Connect a TabView to a slider:
Use With to replace dynamically scoped variables:
A list of objects:
Default alignments:
Control horizontal alignment only:
Control horizontal and vertical alignments:
By default, tabs must be clicked to change the view:
By setting AutoAction->True, moving the mouse over tabs changes the view:
Align with text:
Position the controls:
By default, TabView is enabled:
By setting Enabled->False, TabView is disabled, but visible in its current state:
Add margins within the view:
Add margins outside the view:
Control the overall size of TabView:
Change the style of the labels:
Make a TabView with pictures of Bessel functions:
Show some famous cellular automata in a TabView:
Tab through a list of formulas:
Show the GDP of several countries between 1970-2005:
Use Pane to force linebreaking in the content of TabView:
Dynamic variables will only start updating when displayed:
Rules are used to specify labels for tabs:
Give labels explicitly to display rules in the content area:
By default, the entire contents are generated before displaying the output:
Use Dynamic and ImageSize->Automatic to generate the contents only when displayed:
Successively nest TabView objects:
View images of knots retrieved from KnotData:
New in 6 | Last modified in 7