WintextCom Utilities > The Request Information Utility  >

Presenting a Message Box

Last updated: 08/11/2008 18:45:38 GMT
Print (Alt+1) Previous (Alt+P) Beginning of ChapterNext (Alt+N)

You can display a Windows message box by calling wtreqinfo with the "/m" or "/M" switch, which must be the first command line parameter. Lowercase "m" writes the program banner to the console screen before the message box is displayed, uppercase "m" suppresses the banner.

 

The letter "m" in the switch is followed immediately, without separating spaces, by the definition string of characters that determine the message box type and style, as described in the next section.

 

The second command line parameter, following the message box display switch, contains the text of the message box, and the next command line parameter contains the text of the title of the box. If the title is omitted, the default "Error" is used. If the text is omitted as well, an empty error message is displayed.

 

The terminating new lines switch can follow the title definition if you need wtreqinfo to cursor down before returning the dialogue information. Any further text command line parameters are ignored.

 


Page url: http://wtcmanual.wintextware.com/index.html?wtri_presenting_a_message_box.htm