[Gambas-user] Re: DoEvents
Christian Faure
christian.faurebouvard at ...357...
Wed Dec 8 14:30:30 CET 2004
El Miércoles, 8 de Diciembre de 2004 06:48, Benoit Minisini escribió:
> On Tuesday 07 December 2004 19:50, LB Audio wrote:
> > Please DoEvents in Gambas.
>
> An X11 application can't block other X11 applications - except that there
> is an X instruction that can lock the X server.
>
> The WAIT instruction of Gambas does the same thing than DoEvents on Windows
> NT{4,5,5.1}: it calls the event loop so that event are managed.
>
> This call is recursive, so it can be dangerous: you can create an infinite
> recursion of event handler calls.
>
> But the WAIT Gambas instruction is safer than its VB counterparts, as it
> does not handle input events (mouse & keyboard). Generally, you use WAIT
> only for letting the program refresh its GUI.
>
> Regards,
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?
Regards
More information about the User
mailing list