Introduction
Features
Command Reference
Tutorials
Examples

Colour Schemes
Extras

Online
 Command
Button( [X][,Y][,W][,H][,Caption$][,Image$][,Border][,Popup][,GroupID] )

 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
Caption$ - The text that appears in the center of the button
Image$ - Optional image that appears in the center of the button
Border - Specifies if the button has a thin black border
Popup - Specifies if the buttons border only becomes visible while the mouse is hovering over it
GroupID - Set this to greater than 0 to group a set of buttons so they act like Radio Buttons.

 Description
Standard buttons have a caption and a border, but buttons used for toolbars tend not to have a border and also have the popup property set. Button captions can be on several lines if needed.. simply add a Chr(10) at the end of each line.

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

Include "blitzui.bb"
Initialise( )

mywindow = Window( 20, 20, 200, 150, "My Window", 0, True )
mybutton = Button( 5, 5, 80, 20, "My Button" )
mybutton2 = Button( 5, 30, 80, 40, "My second" + Chr(10) + "button", 0, 0, 0 )
mybutton3 = Button( 5, 75, 80, 40, "My third" + Chr(10) + "button", 0, 0, 1 )

Repeat
    UpdateGUI( )
    DrawMouse( )

    Flip
    Cls
Until KeyHit( 1 )
Destroy( )
End