* 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

Reply via email to