Previous Next Edit Rename Undo Refresh Search Administration
When a Gambas
program has finished executing its Main()
it enters the so-called event loop
The program will loop then while:
- There is a Process that runs.
- There is a Timer that is enabled.
- There is a File that is watched.
- There is at least one toplevel Window that was created.
During this loop, it will process any events raised by any object
for each event, it will call the corresponding event handler
You can call recursively the event loop by using the WAIT
This may lead to infinite recursion, but this is the only way to refresh
the user interface while doing a long processing.