BoxDestroy

 

Removes a WinBatch box.

Syntax:

BoxDestroy(box ID)

Parameters:

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

Returns:

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

 

Removes a WinBatch box and any buttons in the box from the screen. If you specify a box ID of 1, all boxes vanish.

 

Example:

;; sample script for BoxDestroy
BoxesUp("0,0,1000,1000", @NORMAL)
BoxDrawText(1, "0,700,1000,1000", "WinBatch Box Example - BoxDestroy %@crlf%%@crlf% ", @FALSE, 1)
BoxCaption(1, "WinBatch BoxDestroy Example Box 1")
BoxNew(2,"30,41,310,365", 1)
BoxDrawText(2, "0,500,1000,1000", "Box 2", @TRUE, 1)
BoxNew(3,"330,41,610,365", 1)
BoxDrawText(3, "0,500,1000,1000", "Box 3", @TRUE, 1)
BoxNew(4,"639,41,919,365", 2)
BoxDrawText(4, "0,500,1000,1000", "Box 4", @TRUE, 1)
For i=2 To 4
   Message("BoxDestroy", "Destroying Box Number %i%")
   BoxDestroy(i)
Next
See Also:

BoxesUp, BoxNew