Re: doEvents
- Posted by "Kat" <gertie at visionsix.com> Jan 01, 2004
- 444 views
On 1 Jan 2004, at 17:47, Martin Stachon wrote: > > > Rolf Schr=F6der wrote : > > Evan Marshall wrote: > > > > > > From the Win32lib docs under "Events": > > > > > > proc] > > > doEvents (integer id) > > > Gives control back to windows until there are no pending events to proc= > ess. > > > Category: Events > > > > Is this really the truth? I thought, DoEvents() is necessary under Win3 > > (a non preemtive multitasking system, but not under Win32, witch is a > > preemptive multitasking system. > > Do I misunderstand here something? > > This has been discussed before. With Euphoria, we have only one thread, > so if we are inside a routine, we cannot respond to Windows events. > doEvents() is a trick, which process some events and calls event handlers. > It is not ideal, though. The best solution would be to have at least two > threads, one doing computing, and the other processing Windows events, > those needing no additional processing would go back to Windows, and the ot= > her > would be queued up for calling Euphoria event handlers. See Al Getz at: http://www.rapideuphoria.com/cgi-bin/displayserver205.zip Yes, i know that url is mangled, and the zip is not found, but that is how the RDS url http://www.rapideuphoria.com/cgi- bin/asearch.exu?dos=on&win=on&gen=on&keywords=windows+server gives it. Kat