TabBar

Bar with buttons for navigation.

Symbol

Menu ribbon

Start > Controls > Container > Navigation > TabBar

The "TabBar" control element is a bar with buttons for navigation. If you click on one of these buttons, the page or view linked to this button is displayed. A button can be provided with a text and a graphic. To indicate which button is currently active, it is displayed as underlined.

In addition to the simple navigation buttons, the "TabBar" can also contain menu buttons with a selection list of menu items.

Example: A sub-navigation can be realised using the " TabBar. To do this, the "TabBar" is placed at the top of a page, for example. A region is placed under the "TabBar", which is linked to the "TabBar". Various views are displayed in the region, each of which is linked to a navigation button. If a navigation button is clicked, the view linked to it is displayed in the region.

Functionalities

The control element supports the following functionality:

You can configure these functionalities via the properties in the Properties window when you select the control in the Designer or in the document outline. Whether a property is visible in the properties window depends on the style of the control.

Style

By default, the control uses the "Plain.Default" style. Other system styles are available for the control in the "Style" property from the "General properties" category.

Certain properties may be missing in the Properties window for styled controls. For example, the "Colors" category is not available for controls in the system styles. These properties cannot be edited in the system styles.

You can also create your own styles for the control element. These styles are available for selection in the "Style" property after creation.

Structure

The "TabBar" contains any number of elements of the type "TabButton" or "TabMenuButton" and an "Underline" element.

The TabBar and its elements

Navigation button (TabButton)

By default, a "TabBar" contains three navigation buttons (TabButton). A TabButton enables navigation to a view or page.

To add further tab buttons or remove existing ones, call up the Collection Editorvia the button behind the "Items" property of the tab bar (category "Group").

The TabButton supports the following functionality::

Further system styles are available for the control in the "Style" property from the "General properties" category. By default, the control uses the "Plain.Default" style.

Certain properties may be missing in the Properties window for styled controls. For example, the "Colors" category is not available for controls in the system styles. These properties cannot be edited in the system styles.

You can also create your own styles for the control element. These styles are available for selection in the "Style" property after creation.

The TabButton and its elements

Menu button (TabMenuButton)

A TabBar can contain menu buttons (TabMenuButtons) that contain a selection list with menu items.

To add or remove existing TabMenuButtons, call up the Collection Editorvia the button behind the "Items" property of the TabBar (category "Group").

The TabMenuButton supports the following functionality::

Further system styles are available for the control in the "Style" property from the "General properties" category. By default, the control uses the "Plain.Default" style.

Certain properties may be missing in the Properties window for styled controls. For example, the "Colors" category is not available for controls in the system styles. These properties cannot be edited in the system styles.

You can also create your own styles for the control element. These styles are available for selection in the "Style" property after creation.

The TabMenuButton and its elements

Menu item (MenuItem)

A "TabMenuButton" can contain sub-elements of type "MenuItem". Each menu item enables navigation to a page or view.

To add further MenuItems or remove existing ones, call up the Collection Editorvia the button behind the "MenuItems" property of the "TabMenuButton" (category "Menu").

The MenuItem supports the following functionality::

Further system styles are available for the control in the "Style" property from the "General properties" category. By default, the control uses the "Plain.TabNav" style.

Certain properties may be missing in the Properties window for styled controls. For example, the "Colors" category is not available for controls in the system styles. These properties cannot be edited in the system styles.

You can also create your own styles for the control element. These styles are available for selection in the "Style" property after creation.

The MenuItem and its elements

Automatic positioning of the sub-elements

The "Orientation" property is available in the "Group" category. This property can be used to position the TabButtons and TabMenuButtons of the TabBar either below each other (Orientation = Vertical) or next to each other (Orientation = Horizontal).

If the style of the TabBar control element is reset, further properties are available for the automatic positioning of the TabButtons and TabMenuButtons it contains.

Related topics: