[Lazarus] What to replace Application.Processmessages with?

Michael Van Canneyt michael at freepascal.org
Sun Nov 1 10:20:11 CET 2020



On Sun, 1 Nov 2020, Bo Berglund via lazarus wrote:

> procedure AppProcessMessages; virtual; abstract; (no implementation)
>
> And ProcessAsyncCallQueue seems to be doing the job with pretty
> intricate code inside a CriticalSection shield.
>
> QUESTION:
> Is there a way in code to check if Forms is used?
> So it can be used instead of {$IFDEF NOGUI}

normally

{$IF DECLARED(Forms)}
or
{$IF DECLARED(TForm)}

should do the trick for you.

Michael.


More information about the lazarus mailing list