Introduction
Features
Command Reference
Tutorials
Examples

Colour Schemes
Extras

Online
 Command
Tab( [X][,Y ][, W][, H] )

 Parameters
X - The starting X location of the control in pixels.
Y - The starting Y location of the control in pixels.
W - The starting width of the control in pixels.
H - The starting height of the control in pixels.

 Description
Creates a tab to the specified dimensions. A tab doesn't do much on it's own, before it becomes useful you need to add at least 1 tab page to it. Once you've done that it allows you to store several sets of controls in the same place by using the tab pages to switch between the sets. When you've finished creating controls on the current tab and you want to go back to creating them on the current window use CloseTab( ).

 Example
Graphics 640, 480, 16, 2
SetBuffer BackBuffer( )

Include "blitzui.bb"
Initialise( )

mywindow = Window( 20, 20, 200, 150, "My Window" )
mytab = Tab( 4, 4, 188, 116 )
mytabpage1 = TabPage( "Tab 1" )
mylabel = Label( 10, 30, "First Label" )
mytabpage2 = TabPage( "Tab 2" )
mylabel2 = Label( 10, 30, "Second Label" )
CloseTab( )

Repeat
    UpdateGUI( )
    DrawMouse( )

    Flip
    Cls
Until KeyHit( 1 )
Destroy( )
End