Computer Science Canada

GUI.Quit/ProcessEvent

Author:  tum_twish [ Tue Jun 10, 2003 10:25 am ]
Post subject:  GUI.Quit/ProcessEvent

When GUI.Quit is executed, the ProcessEvent loop is exited. How can I have it such that I put another ProcessEvent loop later in the program for another set of widgets, without altering the GUI module

Author:  Tony [ Tue Jun 10, 2003 1:25 pm ]
Post subject: 

you can't... GUI.Quit sets a flag to stop any GUI activity. You would need to go into GUI module and write GUI.Start function Laughing

So to go around it, you use
code:

loop
if GUI.ProcessEvent then
%processing
end if
exit when exitFlag = true
end loop


This way your GUI remains active, but you exited that loop. Now you can clear all your GUI, make new fields and start again on "another" screen.

Author:  Andy [ Tue Jun 10, 2003 5:47 pm ]
Post subject: 

or you can use GUI.Quit
shove it in a proc that activates when something is clicked and ur all set


: