[Gambas-user] Re: DoEvents

Rob sourceforge-raindog2 at ...94...
Wed Dec 8 15:51:20 CET 2004


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






More information about the User mailing list