[Lazarus] GTK2: PostMessage(..., LM_CHAR, ...) and IntfUTF8KeyPress(...)

Žilvinas Ledas zilvinas.ledas at dict.lt
Tue Jun 29 13:35:59 CEST 2010



On 2010-06-29 01:57, Paul Ishenin wrote:
>  29.06.2010 5:13, Žilvinas Ledas wrote:
>> 1.
>>  PostMessage(currentEdit.Handle, LM_CHAR, Ord('a'), 0); // trying to 
>> post msg to some TEdit
>>
>> 2.
>>  UTF8Key := 'a';
>>  currentEdit.IntfUTF8KeyPress(UTF8Key, 1, false);
>>
>>
>> Should these code snippets do something, or it is OK that they have 
>> no effect? I am using FPC 2.5.1 [2010/06/09] and todays SVN Lazarus 
>> on Ubuntu 9.X .
> Well, at least they don't emulate key presses if you needed that but 
> they must call the appropriate handlers in the edit component.
Yes, I needed some kind of emulation :) and I expected it would be so as 
the message queue is "emulated".
Thanks for answer. I'll try to investigate other possibilities.
Or maybe someone can point me to the right direction?

Thanks
Žilvinas




More information about the Lazarus mailing list