TabHost

container for widgets controlled by TabControl

Constructors

this
this()

empty parameter list constructor - for usage by factory

this
this(string ID, TabControl tabControl)

create with ID parameter

Members

Functions

addTab
TabHost addTab(Widget widget, dstring label, string iconId, bool enableCloseButton)

add new tab by id and label string

addTab
TabHost addTab(Widget widget, string labelResourceId, string iconId, bool enableCloseButton)

add new tab by id and label string resource id

onTabChanged
void onTabChanged(string newActiveTabId, string previousTabId)
Undocumented in source. Be warned that the author may not have intended to support it.
removeTab
TabHost removeTab(string id)

remove tab

selectTab
void selectTab(string ID, bool updateAccess)

select tab

tabBody
Widget tabBody(string id)

get tab content widget by id

Properties

hiddenTabsVisibility
Visibility hiddenTabsVisibility [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
hiddenTabsVisibility
Visibility hiddenTabsVisibility [@property setter]
Undocumented in source. Be warned that the author may not have intended to support it.
tabControl
TabControl tabControl [@property getter]

get currently set control widget

tabControl
TabControl tabControl [@property setter]

set new control widget

Variables

_hiddenTabsVisibility
Visibility _hiddenTabsVisibility;
Undocumented in source.
_tabControl
TabControl _tabControl;
Undocumented in source.
tabChanged
Signal!TabHandler tabChanged;

signal of tab change (e.g. by clicking on tab header)

Inherited Members

From FrameLayout

measure
void measure(int parentWidth, int parentHeight)

Measure widget according to desired width and height constraints. (Step 1 of two phase layout).

layout
void layout(Rect rc)

Set widget rectangle to specified value and layout widget contents. (Step 2 of two phase layout).

showChild
bool showChild(string ID, Visibility otherChildrenVisibility, bool updateFocus)

make one of children (with specified ID) visible, for the rest, set visibility to otherChildrenVisibility

From TabHandler

onTabChanged
void onTabChanged(string newActiveTabId, string previousTabId)
Undocumented in source.

Meta