Unit 'mseforms' Package
[Overview][Constants][Types][Classes][Procedures and functions][Index] [#msegui]

tcustommseform.onidle

Called whenever the GUI event queue becomes empty, useful for low priority background processing

Declaration

Source position: mseforms.pas line 379

public property tcustommseform.onidle : idleeventty
  read fonidle
  write fonidle;

Description

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.


Documentation generated on: 2026-10-03