[Gambas-user] Re: DoEvents

Benoit Minisini gambas at ...1...
Thu Dec 9 10:53:54 CET 2004


On Wednesday 08 December 2004 21:32, Charlie wrote:
> Rob schrieb:
> >On Wednesday 08 December 2004 08:30, Christian Faure wrote:
> >>In somes case, a Cancel button is necesary to cancel a big
> >>process, Is posible to create another api or modify WAIT to
> >>handle input events?
> >
> >Just in case this workaround hasn't occurred to you... if you
> >have to, you can put your processing into a timer object, doing
> >a chunk of it each time the timer event fires (obviously you
> >want to set a flag indicating the timer event handler is running
> >so you don't have overlap.)
> >
> >It's not really pretty but it may also have the effect of forcing
> >you to write cleaner code since you have to maintain state
> >between timer fires.
> >
> >Rob
>
> Salut,
>
> send you a project from the early 0.3x of gambas where WAIT had problems.
> Now I see it dosn't work any more.
> Since I can't trap mouse while WAIT, and buttons don't worke anymore.
> You can't stop this application no more.
>
> Amicalment
> Charlie

Maybe I should add an option to WAIT to tell it "just refresh" or "get mouse 
and keyboard events"...

-- 
Benoit Minisini
mailto:gambas at ...1...




More information about the User mailing list