TabHost

container for widgets controlled by TabControl

Constructors

this
this(string ID, TabControl tabControl)
Undocumented in source.

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)

select tab

Properties

onTabChangedListener
void delegate(string newActiveTabId, string previousTabId) onTabChangedListener [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
onTabChangedListener
void delegate(string newActiveTabId, string previousTabId) onTabChangedListener [@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

_onTabChanged
void delegate(string newActiveTabId, string previousTabId) _onTabChanged;
Undocumented in source.
_tabControl
TabControl _tabControl;
Undocumented in source.

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).

onDraw
void onDraw(DrawBuf buf)

Draw widget at its position to buffer

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