[Gambas-user] Re: DoEvents
Christian Faure
christian.faurebouvard at ...357...
Wed Dec 8 19:10:40 CET 2004
El Miércoles, 8 de Diciembre de 2004 11:51, Rob escribió:
> 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
Thanks Rob,
yes i use this workaround,
but expect a pretty solution :-) if possible...
More information about the User
mailing list