12 12 schreef:
* Marc Santhoff <[EMAIL PROTECTED]> [Thu, 01 Nov 2007 22:19:44 +0100]:
Am Donnerstag, den 01.11.2007, 17:03 +0300 schrieb 12 12:
> Is there any cross-platform way to implement subj?
> Suppose I need from Form2 to add some letter into TEdit which placed
on
> Form1.
> Except of WinAPI's SendInput.

At least for all X Windows platforms you can use the Xtst extension to
the X server. That one allows to send keyboard events from your
application.

Making a Form showing key buttons should be straightforward, the only
thing a little hairy is getting the encoding right. But with that I
could help. I have done something similar using the technique from one
of xautomation's tools (translated to pascal).

Isn't really impossible to use LCL-only tools?
I don't need to send key events to another application,
only to another form or control of the same app!

As far as I know, this is not yet possible. But feel free to write something that emulates: http://wiki.lazarus.freepascal.org/LCL_Key_Handling
As you see, a lot of things happen when a key is pressed, so this is not 
trivial.

Vincent

_________________________________________________________________
    To unsubscribe: mail [EMAIL PROTECTED] with
               "unsubscribe" as the Subject
  archives at http://www.lazarus.freepascal.org/mailarchives

Reply via email to