(Obsolete)
Description: This statement draws an empty box on the screen.
Returns: Nothing
Usage: Steady State
Format: Box(X1, Y1, X2, Y2, Style, Width, Color)
Parameters: X1 { numeric } { required } { no default: }
Any numeric expression giving the X coordinate of one side of the box on the screen (either left or right).
Y1 { numeric } { required } { no default: }
Any numeric expression giving the Y coordinate of either the top or bottom of the box on the screen.
X2 { numeric } { required } { no default: }
Any numeric expression giving the X coordinate of the side of the box opposite to X1 on the screen (either left or right)..
Y2 { numeric } { required } { no default: }
Any numeric expression giving the Y coordinate of either the top or bottom of the box, whichever is the opposite to Y1.
Style { numeric } { required } { no default: }
Any numeric expression giving the line style for the box wall. Valid line styles are from 1 to 10 inclusive. A line style of 1 is a solid line.
Width { numeric } { required } { no default: }
Any numeric expression giving the width of the box wall in units of X screen coordinates. The width is always rounded to result in an odd number of pixels on the screen. The minimum width displayed will be 1 pixel.
Color { numeric } { required } { no default: }
Any numeric expression giving the color of the box.
Comments: Box has been superseded by the GUIRectangle and ZBox statements, and is maintained for backwards compatibility only.
Box is a non-destructive graphic statement that exclusive OR's with the existing background.
Example:
Box(700, 500, 780, 580 { Bounding box },
1, 0 { Solid line style, one pixel wide },
9 { Bright blue color });
The example above draws a bright blue box in the lower right-hand corner of the screen.
See Also:
Box | GUIRectangle | ZBox | ZBar