Constructs a toolbar tab gui object. Tab after being constructed needs to be added to the toolbar for it to be visible in the application.
local tab1 = gui.ToolbarTab("Tab1")
Add Toolbar Group to the tab of the given name and width or by pointer to existing toolbar group. Width is optional and is by default 3 cols long.
local group1 = tab1:addGroup("Group1")
local group2 = tab1:addGroup("Group2", 4)
local group1 = gui.ToolbarGroup("Group3") tab1:addGroup(group1)
Find toolbar group in tab by group label.
local group1 = tab1:groupByName("Group1")
Get and set label for the toolbar tab.
message(tab1:label())
tab1:setLabel("New Tab")
Enable or disable the toolbar tab.
tab1:enable()
tab1:disable()
Remove the current toolbat tab from the toolbar.
tab1:remove()
Add Toolbar Button to the tab by passing in Toolbar Button object and name of group to add button to.
tab1:addButton(button1, "Modify")
Get Toolbar Group by name from the tab.
local group1 = tab1:groupByName("Group1")
Return list containing all groups in the tab.
local groupsList = tab1:groups()
Find toolbar button in the group of the given name in the tab.
local button1 = tab1:buttonByName("Button1", group1)
Remove group of the given name or by passing in a toolbar group object.
tab1:removeGroup("Group1")
tab1:removeGroup(group1)