Programming C, C++, Java, PHP, Ruby, Turing, VB
Computer Science Canada 
Programming C, C++, Java, PHP, Ruby, Turing, VB  

Username:   Password: 
 RegisterRegister   
 GUI.ProcessEvent
Index -> Programming, Turing -> Turing Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
vlovich




PostPosted: 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.
Sponsor
Sponsor
Sponsor
sponsor
Solo




PostPosted: 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.
Prince




PostPosted: Thu Jun 05, 2003 10:01 am   Post subject: (No subject)

wats wrong wit using GUI.Quit
vlovich




PostPosted: Thu Jun 05, 2003 10:59 am   Post subject: (No 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
Display posts from previous:   
   Index -> Programming, Turing -> Turing Help
View previous topic Tell A FriendPrintable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic

Page 1 of 1  [ 4 Posts ]
Jump to:   


Style:  
Search: