[Lazarus] What to replace Application.Processmessages with?

Mattias Gaertner nc-gaertnma at netcologne.de
Tue Oct 27 23:46:39 CET 2020


On Mon, 26 Oct 2020 13:00:26 +0100 (CET)
Michael Van Canneyt via lazarus <lazarus at lists.lazarus-ide.org> wrote:

>[...]
> Procedure HandleMainLoop;
> 
> begin
> {$IFDEF NOGUI}
>    CheckSynchronize;
> {$ELSE}
>    Application.ProcessMessages;
> {$ENDIF}
> end;
> 
> And call that both in GUI and NOGUI.

Application.ProcessMessages calls CheckSynchronize in NoGUI.

Mattias


More information about the lazarus mailing list