BoxOpen

 

Opens a WinBatch message box.

Syntax:

BoxOpen (title, text)

Parameters:

(s) title title of the message box.

(s) text text to display in the message box.

Returns:

(i) always 1.

 

Note: In our shorthand method for indicating syntax the (s) in front of a parameter indicates that it is a string. An (i) indicates that it is an integer and a (f) indicates a floating point number parameter.

This function opens a message box with the specified title and text. The message box stays in the foreground while the WIL program continues to process.

The title of an existing message box can be changed with the BoxTitle function, and the text inside the box can be changed with the BoxText function.

Use BoxShut to close the message box.

Example:

BoxOpen("Processing", "Be patient")
TimeDelay(2)
BoxTitle("Still processing")
TimeDelay(2)
BoxText ("Almost done")
TimeDelay(2)
BoxShut()
See Also:

BoxShut, BoxText, BoxTitle, Display, Message (both found in main WIL documentation)