Draws a rectangle with rounded corners.
RBox x1,y1,x2,y2 RBox x1,y1 To x2,y2 RBox x1,y1, Step w,h
PRBox x1,y1,x2,y2 PRBox x1,y1 To x2,y2 PRBox x1,y1, Step w,h
x1,y1,x2,y2,w,h : single exp
RBox x1,y1,x2,y2 and RBox x1,y1 To x2,y2 both draw a rectangle with rounded corners, with the diagonally opposite corner coordinates at x1,y1 (upper left) and x2,y2 (lower right), while RBox x1,y1 Step w,h also draws a similar rectangle but with top left coordinate x1,y1 and a width of w and height of h.
The width of the line drawn depends on the setting of the DefLine command and the way a line or box is drawn on the background depends on the setting of the DrawMode and BkColor properties.
The PRBox command acts very much the same, except that the boxes drawn are filled with a pattern defined using Deffill.
OpenW 1
RBox 10, 10, 100, 100
DefLine 1
RBox 110, 10, Step 90, 90
PRBox 10, 110, 100, 200
DefFill 5 : DefLine 0
PRBox 110, 110, Step 90, 90
BkColor, DefFill, DefLine, DrawMode, Box, PBox, Box3D, PBox3D, PolyLine, PolyFill
{Created by Sjouke Hamstra; Last updated: 22/06/2017 by James Gaite}