Basically you create an image as button, and then check if the mouse is inside the image or collide with it when you click a mouse button.
You can check for a collision between the mouse pointer image and the button image (ImageCollides command); or check if the mouse pointer collides with a rectangle (ImageRectCollide command).
Check also ImageRectOverlap and ImageRectCollide commands.
Example:
Graphics3D 800,600,0,2
;button properties
bx = 300
by = 300
bw = 128
bh = 64
While Not KeyDown(1)
Cls
;draw a filled rect
Color 0,200,0
Rect bx,by,bw,bh,True
;draw text
Color 0,0,0
Text bx + bw/2,by + bh/2, "I'm a button !",True,True
If MouseHit(1) Then ;pressed left mouse ?
x = MouseX() ;get mouse coords
y = MouseY()
;is the mouse was inside the button ?
If RectsOverlap (bx,by,bw,bh,x,y,5,5) Then
;do something here
End
EndIf
EndIf
Flip
Wend
End
Anyway, even if you are new to Blitz3D, I would really suggest you to take a look to a fantastic sprite library, which manages menu buttons very good, and not only.
The library is called Sprite Candy, and you find here:
www.x-pressive.com
Regards,
Sergio.