Tab()

For use with DuAEF.DuScriptUI.
A Tab inside a TabPanel.
This is not a real class, and cannot be instanciated.
Use TabPanel.add to create a new Tab.

new Tab()

Properties:
Name Type Description
index int The index of this tab.
button DuButton The button associated with this tab.
onActivate Tab~tabActivated The function to execute when the tab is displayed.
onActivate Tab~tabDeActivated The function to execute when the tab is hidden.
build Tab~build You can use this callbacl to add a function which builds the UI of the tab, it will be called on first display.

Type Definitions

build(tab)

You can use this callback to add a function which builds the UI of the tab, it will be called on first display.
This allows a faster startup of your script by delaying the creation of the tabs which are hidden at startup.
The function must take one argument, a ScriptUI Group which is the tab iteself. You can add controls in this group.
Parameters:
Name Type Description
tab Group The tab where the ui has to be built

tabActivated()

The function to execute when the tab is about to be displayed.

tabDeActivated()

The function to execute when the tab is hidden.