Deleting symbol in current position is also easy, just set SelStart,
SelLength and clear SelText.

But if you want do to the hard way, which involves writing platform specific
code, be my guest. You asked for cross platform way and that's why I give to
you.

Regards.

-----Mensaje original-----
De: 12 12 [mailto:[EMAIL PROTECTED] 
Enviado el: Jueves, 01 de Noviembre de 2007 11:18 a.m.
Para: [email protected]
Asunto: RE: [lazarus] Emulate keyboard input like Windows "Screen Keyboard"

* Sergio Samayoa <[EMAIL PROTECTED]> [Thu, 1 Nov 2007 08:52:21 
-0600]:
> Then is very easy:
>
> Control := Screen.ActiveControl;
> if (Control is TCustomEdit) then
>    TCustomEdit(Control).SelText := SomeVariable;
>

What about adding or deleting a symbol at current cursor position?
I think parsing of text value is not good idea.
I beleive if some control can receive and process keypress events
it should be possible to emulate it from another control.


--
12 12 aka skywriter

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

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

Reply via email to