[Lazarus] Lazarus and Application.ProcessMessages
Mattias Gaertner
nc-gaertnma at netcologne.de
Sat Dec 6 17:15:53 CET 2014
On Sat, 06 Dec 2014 16:02:40 +0100
JuuS <JuuS at mykolab.ch> wrote:
> Hi all,
>
> A bit late with this and haven't read everything through and through but...
>
> I worked with Delphi for some time and, yes, Application.Processmessages
> brings system to knees and processor to 100%.
>
> But in Delphi there was also an Application.Handlemessage...used like this:
>
> repeat
> Application.HandleMessage;
> until AKeyPressed (or whatever);
>
> ...and the system is calm (normal load) and the program responsive. It
> was like Handlemessage was sipping water drops dripping from a fern
> leaf, while Processmessages was drinking from a fire hose... :)
>
> I don't know if anyone else has mentioned this, not reading all the
> mails, and also don't know if Handlemessage is implemented in Lazarus
> (not being by my computer right now).
Also implemented in Lazarus.
HandleMessage waits till the next message.
Mattias
More information about the Lazarus
mailing list