Tabbed Container
Tabbed Container hosts widgets by tab.
Operations
With its context menu, you are able to
- Remove Tab. Remove the current tab.
- Duplicate Tab. Duplicate the current tab with its content.
- Change Tab Index. Change the position of the current tab.
- Add Tab After. Add an empty tab after the current tab.
- Add Tab Before. Add an empty tab before the current tab.
Special Properties
- Tab Count (tab_count). The number of tabbs. Change this property can add/remove tabbs.
Attention: If you remove tabbs by changing this property, the widgets on the removed tabbs cannot be recovered by Undo.
So it is recommended to remove a tab by right clicking the tab and choose "Remove Tab".
- Active Tab (active_tab). Index of the tab that is visible.
- Horizontal Tabs(horizontal_tabs). Arrange tabs in horizontal or vertical
- Minimum Tab Height(minimum_tab_height). The minimum height of tabs.
- Title (title). Title of the tab.
- Icon path (icon_path). The path of an image that is used as the icon of the tab.
- Enabled (enabled). Enable or disable the tab. A disabled tab can't be selected and all its components are disabled.
See Also
Special Methods
getActiveTabIndex
public int getActiveTabIndex()
- Get the index of the active tab.
- Returns:
- the index of the active tab. Index starts from 0.
setActiveTabIndex
public void setActiveTabIndex(int index)
- Show tab in this index.
- Parameters:
index
- the index of the tab to be shown. Index starts from 0.