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

Username:   Password: 
 RegisterRegister   
 GUI ^_^ need info on qui. process event
Index -> Programming, Turing -> Turing Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
Kharybdis




PostPosted: Wed Jan 02, 2008 8:14 pm   Post subject: GUI ^_^ need info on qui. process event

when using GUI, there has to be a :


loop
exit when GUI.ProcessEvent
end loop

Is there any way for this NOT to be used? because this is just annoying.
Sponsor
Sponsor
Sponsor
sponsor
Saad




PostPosted: Wed Jan 02, 2008 8:15 pm   Post subject: RE:GUI ^_^ need info on qui. process event

Only possible way is to not use Turing's GUI
Kharybdis




PostPosted: Wed Jan 02, 2008 8:17 pm   Post subject: Re: GUI ^_^ need info on qui. process event

Sigh. Thats what i thought.
Tony




PostPosted: Wed Jan 02, 2008 8:47 pm   Post subject: RE:GUI ^_^ need info on qui. process event

actually that's not true.

the way Turing's GUI works is that it processes clicks during the GUI.ProcessEvent calls. As such, it could be called inside any loop in any matter. At times when it's not called, no GUI events are processed, that is all.

Turing:

loop
   doSomething()
   doSomethingElse()
   if GUI.ProcessEvent then
      % user has called GUI.Quit
   end if
end loop
Latest from compsci.ca/blog: Tony's programming blog. DWITE - a programming contest.
Saad




PostPosted: Wed Jan 02, 2008 9:01 pm   Post subject: RE:GUI ^_^ need info on qui. process event

I assumed he meant not use GUI.ProcessEvent in a loop. But Tony is correct
Gooie




PostPosted: Wed Jan 02, 2008 10:57 pm   Post subject: Re: GUI ^_^ need info on qui. process event

Just make your own GUI, it's more fun ^_^.
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  [ 6 Posts ]
Jump to:   


Style:  
Search: