Introduction
Features
Command Reference
Tutorials
Examples

Colour Schemes
Extras

Online
 Command
TreeView( [X][,Y][,W][,H][,ItemHeight][,Inc][,SDelay][,Snap] )

 Parameters
X - Starting X location of the control
Y - Starting Y location of the control
W - Starting width of the control
H - Starting height of the control
ItemHeight$ - The height of each item in the treeview
Inc - The rate at which the scrollbar scrolls
SDelay - The delay between each scroll
Snap - Snaps the height of the textbox to fit an exact number of lines

 Description
Tree Views are very cool controls. A common use is for allowing the user to browse through their hard drives, folders and files in a clear and easy way. It does this by using nodes. The top layer is usually the list of hard drives, then when you click on one it shows another set of nodes (usually a list of folders).

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

Include "blitzui.bb"
Initialise( )

mywindow = Window( 20, 20, 200, 150, "My Window", 0, True )
mytreeview = TreeView( 5, 5, 185, 100 )
node1 = AddTreeViewNode( mytreeview, "Node One" )
node2 = AddTreeViewNode( node1, "Sub Node One" )
node3 = AddTreeViewNode( node1, "Sub Node Two" )
node4 = AddTreeViewNode( mytreeview, "Node Two" )
node5 = AddTreeViewNode( node4, "Sub Node One" )
node6 = AddTreeViewNode( node4, "Sub Node Two" )
node7 = AddTreeViewNode( node4, "Sub Node Three" )

Repeat
    UpdateGUI( )
    DrawMouse( )

    Flip
    Cls
Until KeyHit( 1 )
Destroy( )
End