Tab object

The Tab widget provides a container for organizing content into labeled pages

Event Description
Tab:onClick() Event occurs when the user clicks on the Tab
Tab:onContext() Event fired when a right click occured on the Tab
Tab:onCreate() Event fired when Tab has just been created
Tab:onDrop() Event fired when the Tab received a drag and drop content
Tab:onHide() Event fired when the Tab is hidden
Tab:onHover() Event fired when the user moves the mouse pointer over the Tab
Tab:onLeave() Event fired when the mouse cursor leaves the Tab
Tab:onMouseDown() Event fired when the user presses a mouse button over the Tab
Tab:onMouseUp() Event fired when the user releases a mouse button over the Tab
Tab:onSelect() Event fired when the user selects an item in the Tab
Tab:onShow() Event fired when the Tab is shown
Property Description Access Type
Tab.align Align the Tab relative to its parent readwrite boolean
Tab.allowdrop Controls whether the Tab is a drag and drop target readwrite boolean
Tab.count Get the count of items in the Tab readonly number
Tab.cursor Get/set the image of the mouse cursor as it hovers over the Tab readwrite string
Tab.enabled Controls whether the Tab responds to mouse and other events readwrite boolean
Tab.font Get/set the Tab font readwrite string
Tab.fontsize Get/set the Tab font size readwrite number
Tab.fontstyle Get/set the Tab font style readwrite table
Tab.height Get/set the Tab's height readwrite number
Tab.items Get/set the Tab of the Tab items readonly table
Tab.parent Get the Tab's parent widget readonly
Tab.selected Get/set the selected Tab item readonly
Tab.visible Controls whether the Tab appears on screen readwrite boolean
Tab.width Get/set the Tab's width readwrite number
Tab.x Get/set the Tab's horizontal position readwrite number
Tab.y Get/set the Tab's vertical position readwrite number
Methods Description Return value
Tab:add() Add an item to the Tab
Tab:center() Centers the Tab on the parent widget -
Tab:clear() Remove all items from the Tab -
Tab:constructor() Tab object constructor
Tab:hide() Hides the Tab -
Tab:remove() Remove an item from the Tab -
Tab:show() Shows the Tab -
Tab:toback() Puts the widget to the back -
Tab:tofront() Brings the widget in front -