Michael Schnell schrieb:
On 11/25/2011 10:35 AM, Hans-Peter Diettrich wrote:
Does a SendMessage call bypass any other messages which have been
queued until that time? (by dispatching the message immediately to the
target?)
AFAIK, Yes. (i.e. in non-Windows LCLWidgetType implementations that
provide their own queues, SendMessage() and the main thread loop taking
an Event from the queue (can) result in the same function call to
Dispatch.)
Another reason: what when the event handler sends another message, e.g.
for reading or writing a property? Queuing the new message would result
in an deadlock.
DoDi
--
_______________________________________________
Lazarus mailing list
[email protected]
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus