Contents - Index


Message Window (Macro Command)

 

MessageWindow([OK, Cancel], 'message text')

 

MessageWindow provides the same capability as the MessageDialog macro command.  It uses the same inputs.  However, MessageWindow will allow the user to view and modify EES windows whereas the MessageDialog restricts all keystokes and mouse events to the dialog.   

 

 

Example:

//This macro opens all of the .EES files in a directory and solves them one a time.  The MessageWindow macro suspends the process 

//until the OK or Cancel buttons are clicked.  The EES windows are accessible until a button is clicked.

 

SetDirectory('c:\temp\eesfiles')

F$=GetFirstFile$(*.ees)

if (F$='') then quit

repeat

  Open F$

  solve

  ShowWindow Solution 

  R=MessageWindow([OK, Cancel], 'Press the OK button when you want to continue.  Click Cancel to quit')

  if (R=2) then Quit

  F$=GetNextFile$

until (F$='')

 

 

See also: MessageDialog

 

MacroCommands