[Lazarus] What to replace Application.Processmessages with?
Michael Van Canneyt
michael at freepascal.org
Wed Oct 28 08:05:12 CET 2020
On Tue, 27 Oct 2020, Mattias Gaertner via lazarus wrote:
> 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.
NOGUI does not mean 'use nogui LCL'
He does not use the LCL in that mode, so Application is not available.
Michael.
More information about the lazarus
mailing list