Computer Science Canada

GUI ^_^ need info on qui. process event

Author:  Kharybdis [ 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.

Author:  Saad [ 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

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

Sigh. Thats what i thought.

Author:  Tony [ 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

Author:  Saad [ 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

Author:  Gooie [ 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 ^_^.


: