
-----------------------------------
vlovich
Wed Jun 04, 2003 10:36 pm

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.

-----------------------------------
Solo
Wed Jun 04, 2003 11:58 pm

GUI Suggestion
-----------------------------------
I suggest you do something like this:
loop
exit when GUI.ProcessEvent or blnQuit
end loop


That way you can set blnQuit := true, and exit the loop without GUI.Quit.

-----------------------------------
Prince
Thu Jun 05, 2003 10:01 am


-----------------------------------
wats wrong wit using GUI.Quit

-----------------------------------
vlovich
Thu Jun 05, 2003 10:59 am


-----------------------------------
loop 
exit when GUI.ProcessEvent or blnQuit 
end loop 

yeah.  i figured that out when i posted.

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
