[Lazarus] GTK2: PostMessage(..., LM_CHAR, ...) and IntfUTF8KeyPress(...)
Paul Ishenin
webpirat at mail.ru
Tue Jun 29 00:57:47 CEST 2010
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.
Best regards,
Paul Ishenin.
More information about the Lazarus
mailing list