BOX()
Jump to navigation
Jump to search
Description
- A BOX can be drawn in a graphic object. It is drawn in the current COLOR() and the current SIZE(). One corner is at the current pen position. The other corner's X,Y coordinates are fed to the BOX command.
Syntax
- #handle BOX(x, y) - Draw a box from the current position to x, y
Hints
- Place useful hints about this keyword here
Example
Run BASIC
'create a graphic object graphic #g, 300, 300 'place the drawing pen at 10,10 #g place(10,10) 'draw a box #g box(290, 290) 'add graphic to web page render #g
Liberty BASIC 5
'create a graphic window
open "All Shapes Demo" for graphics_nf_nsb as #g
#g trapclose("[quit]")
'place the drawing pen at 10,10
#g place(10,10)
'draw a box
#g box(290, 290)
'make graphics stick
#g flush()
wait
[quit]
close #g
end
Useful Procedures
' Place a useful function or sub using this keyword here