BoxDrawRect

 

Draws a rectangle in a WinBatch box.

Syntax:

BoxDrawRect(box ID, coordinates, style)

Parameters:

(i) box ID the ID number of the desired WinBatch box.

(s) coordinates dimensions of rectangle, in virtual units (upper-x upper-y lower-x lower-y).

(i) style style of rectangle to be drawn.

Returns:

(i) @TRUE on success; @FALSE on failure.

 

Draws a rectangle on the screen using the current BoxPen for the outline, and the current BoxColor for the inside of the box.

1000x1000 virtual screen size is based on the primary monitor in a multi-monitor display configuration.

Style:

0 empty rectangle with border

1 filled rectangle with border

2 filled rectangle with no border

3 transparent circle/rectangle with border.

 

Example:

;; sample script for BoxDrawRect
BoxesUp("0,0,1000,1000", @NORMAL)
BoxColor(1,"255,255,0",0)
BoxDrawRect(1,"0,0,1000,1000",2)
BoxColor(1,"255,0,0",0)
BoxDrawText(1, "0,900,1000,1000", "WinBatch Box Example - BoxDrawRect ",@FALSE, 1)
BoxCaption(1, "WinBatch BoxDrawRect Example")
BoxDrawRect(1, "30,41,310,465", 0)
BoxDrawText(1, "30,500,310,665", "Style 0 - empty with border ", @FALSE, 1)
BoxDrawRect(1, "330,41,610,365", 1)
BoxDrawText(1, "330,381,610,365", "Style 1 - filled with border ", @FALSE, 1)
BoxColor(1,"0,0,255",0)
BoxDrawRect(1, "696,114,839,841", 2)
BoxDrawText(1, "696,881,839,841", "Style 2 - filled with no border ", @FALSE, 1)
BoxDrawRect(1, "30,41,839,841", 3)
BoxDrawText(1, "30,11,839,841", "Style 3 - transparent rectangle with border.", @FALSE, 1)
TimeDelay(5)
See Also:

BoxDrawCircle, BoxDrawLine, BoxDrawText, BoxesUp, BoxNew