[Lazarus] Sending messages

Felipe Monteiro de Carvalho felipemonteiro.carvalho at gmail.com
Thu Nov 24 20:56:13 CET 2011


On Thu, Nov 24, 2011 at 6:18 PM, Hans-Peter Diettrich
<DrDiettrich1 at aol.com> wrote:
> Q: does the LCL support more than one message queue (the one in
> Application)?

There are various event loops:

* Application.Run
* ShowModal makes a loop too
* ProcessMessages has a short lived loop

And user code can also start their own loops by using ProcessMessages

I wouldn't call those loops "event queues", because they don't
implement any kind of queues, they process all events which are
obtained immediately. The events are not stored in queues. The queue
itself is inside the backend library, for example Windows API, X11,
etc.

-- 
Felipe Monteiro de Carvalho




More information about the Lazarus mailing list