Called whenever the GUI event queue becomes empty, useful for low priority background processing
Source position: mseforms.pas line 379
public property tcustommseform.onidle : idleeventty |
Called whenever the GUI event queue becomes empty, useful for low priority background processing (e.g. MSEide's own source highlighter processes a block of lines on each call). The again parameter is False by default; set it to True to be called again immediately once the queue is empty, until the background task is done. Since onidle runs from the main event loop, calling a modal function such as showmessage from it starts a nested event loop, which calls onidle again recursively — and calling sleep from it suspends GUI event processing for the whole application.