[Lazarus] fpGUI

Henry Vermaak henry.vermaak at gmail.com
Wed Jan 12 17:55:04 CET 2011


On 12/01/11 16:36, Michael Schnell wrote:
> On 01/12/2011 05:14 PM, Henry Vermaak wrote:
>>
>> I just tested again here, and using postmessage with gtk2 from an
>> external thread (from a library) works perfectly.
> As taken from some example code, I just created a user thread with
> TMyThread.create(). It does run and does
>
> while not Terminated do begin
> sleep(2000);
> PostMessage(Handle, LM_MY_MESSAGE, 2, 0);

Are you really posting the message to the _thread_ handle?  You probably 
want to post it to e.g. Form1.Handle.

Henry




More information about the Lazarus mailing list