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

2010-06-30 Thread Žilvinas Ledas
On 2010-06-30 12:05, Paul Ishenin wrote: 30.06.2010 16:18, Žilvinas Ledas wrote: Yes, thanks, I understand that. I just was HOPING it will do what I want :) I have some kind of "virtual keyboard" but it is only for my own app (it does send "keys" to 3 TEdit's), so I was hoping such PostMessag

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

2010-06-30 Thread Paul Ishenin
30.06.2010 16:18, Žilvinas Ledas wrote: Yes, thanks, I understand that. I just was HOPING it will do what I want :) I have some kind of "virtual keyboard" but it is only for my own app (it does send "keys" to 3 TEdit's), so I was hoping such PostMessage() will work as I expect. As it is not - I

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

2010-06-30 Thread Žilvinas Ledas
On 2010-06-30 10:56, Michael Schnell wrote: On 06/28/2010 11:13 PM, Žilvinas Ledas wrote: PostMessage(currentEdit.Handle, LM_CHAR, Ord('a'), 0); // trying to post msg to some TEdit AFAIK, Controls that react on messages is a windows specific way to manage controls. In Linux, mess

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

2010-06-30 Thread Michael Schnell
On 06/28/2010 11:13 PM, Žilvinas Ledas wrote: > > PostMessage(currentEdit.Handle, LM_CHAR, Ord('a'), 0); // trying to > post msg to some TEdit AFAIK, Controls that react on messages is a windows specific way to manage controls. In Linux, messages can be used to have a thread notify the main threa

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

2010-06-29 Thread Mattias Gaertner
On Tue, 29 Jun 2010 14:54:54 +0300 Žilvinas Ledas wrote: > > > 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'; >

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

2010-06-29 Thread Žilvinas Ledas
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

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

2010-06-29 Thread Žilvinas Ledas
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

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

2010-06-28 Thread Paul Ishenin
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 us

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

2010-06-28 Thread Žilvinas Ledas
Hello all, it's the first time I am trying something with Linux and GTK2 and these two things do not work at all: 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 thes