BoxNew

 

Creates a WinBatch box.

Syntax:

BoxNew(box ID, coordinates, style)

Parameters:

(i) box ID An ID number from 1 - 8 specifying the desired WinBatch box. Maximum boxes allowed, 8.

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

(i) style style of box to create.

Returns:

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

 

This function makes a new box inside the top level (box ID 1) box. If an existing box ID is used, the newly specified coordinates and style will be adopted.

Style allows a selection from three different kinds of boxes.

0 No border

1 Border

2 Border and caption

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

 

Example:

;; sample script for BoxNew
BoxesUp("0,0,1000,1000", @NORMAL)
BoxDrawText(1, "500,500,500,500", "WinBatch Box Example - BoxNew ", @FALSE, 1)
BoxCaption(1, "WinBatch BoxNew Example")
BoxColor(1,"255,255,0",0)
BoxDrawRect( 1, "0,0,1000,1000", 2)
BoxNew(2, "30,41,310,465", 0)
BoxDrawText(1, "30,681,310,665", "Style 0 - No border ", @FALSE, 1)
BoxNew(3, "330,41,610,365", 1)
BoxDrawText(1, "330,381,610,365", "Style 1 - Border ", @FALSE, 1)
BoxNew(4, "696,114,839,841", 2)
BoxDrawText(1, "696,881,839,841", "Style 2 - Border with caption ", @FALSE, 1)
BoxCaption(4, "Style 2 BoxNew")
TimeDelay(7)
See Also:

BoxesUp