Zaher Dirkey schrieb:
When I said that the Windows documentation of PostMessage can be used, I
did not think of the description of the messages to be sent by
PostMessage. Same might be Windows-specific and in the LCL not ported
(or portable) to Linux Widget Types like GTK. Here I suppose a
documentation is lacking and thus only
As i understood PostMessage
PostMessage put the message in queue, the message received by window
proc, so there is time between send this message and received, leave it
to execute the code inside the MouseDown event.
In Windows it is managed by the system, i am reading the thread for that.
Right, Windows manages messages and thus allows to send messages to
other processes, and also can make the sender process or thread wait for
an answer on SendMessage. When an OS doesn't support sending messages,
the same handling can be implemented only inside a single application.
Such an implementation can follow the Windows message format, where
wParam and lParam can be pointers to local (process) data. In such cases
the sender has to make sure that the related memory and all contained
references stay valid, until the message has been handled by the receiver.
BTW, forms should never be free'd, instead Release should be used. Forms
in released state will be free'd after they have processed all their
queued messages.
DoDi
--
_______________________________________________
Lazarus mailing list
[email protected]
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus