[Gambas-user] Event loop

daniel danielcampos at ...277...
Sun Nov 30 13:02:18 CET 2003


El sáb, 29-11-2003 a las 20:43, Ken Schrock escribió:
> If my app is in a sub that takes a long time
> How do I release to allow the interface to update?
> (i.e. The current action is synchronous, the interface doesn't
>   update until the sub is finished, even though it updates it)
> 
> There was a DoEvents or some such in VB
> Sleep works in C in Linux
> How here?
> 
> 
Use Wait() method, you can specify a number as parameter, if you
use Wait(0) it is the same as DoEvents in VB,but if you use a number
greater than zero, is the number of seconds the program will pause
(sleep), for instance Wait(0.001) sleeps a milisecond the process

Regards,

Daniel Campos
 

> 
> -------------------------------------------------------
> This SF.net email is sponsored by: SF.net Giveback Program.
> Does SourceForge.net help you be more productive?  Does it
> help you create better code?  SHARE THE LOVE, and help us help
> YOU!  Click Here: http://sourceforge.net/donate/
> _______________________________________________
> Gambas-user mailing list
> Gambas-user at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user





More information about the User mailing list