[Gambas-user] DoEvents

Benoit Minisini gambas at ...1...
Wed Dec 8 10:48:53 CET 2004


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,

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




More information about the User mailing list