Computer Science Canada

GUI.ProcessEvent

Author:  vlovich [ Wed Jun 04, 2003 10:36 pm ]
Post subject:  GUI.ProcessEvent

Does it remove the last GUI.Quit pressed from queue? Cause the problem i'm having is i have a few quit buttons (simply go from one screen to another) and their messing up my program.

Author:  Solo [ Wed Jun 04, 2003 11:58 pm ]
Post subject:  GUI Suggestion

I suggest you do something like this:
code:
loop
exit when GUI.ProcessEvent or blnQuit
end loop


That way you can set blnQuit := true, and exit the loop without GUI.Quit.

Author:  Prince [ Thu Jun 05, 2003 10:01 am ]
Post subject: 

wats wrong wit using GUI.Quit

Author:  vlovich [ Thu Jun 05, 2003 10:59 am ]
Post subject: 

Quote:
code:
loop
exit when GUI.ProcessEvent or blnQuit
end loop


yeah. i figured that out when i posted.

Quote:
wats wrong wit using GUI.Quit


It seems that GUI.ProcessEvent doesn't automatically remove the last pressed button that has a GUI.Quit event. Try this: create two buttons that have a parameter of GUI.Quit. Then do this:

loop
exit when GUI.ProcessEvent
end loop

loop
exit when GUI.ProcessEvent
end loop
put "Finished"

Normally you would expect to have to press the button twice for the program to finish, but just once does it


: