I just have learned it is possible to set
Form1.Keypreview := true;

Then call from Form2
Form1.FormKeyPress( Self, Key );

Now i think how to assign this 'Key' to
Form1.ActiveControl.

I obtained TWinControl class has the following public:
procedure KeyDown(var Key: Word; Shift: TShiftState); dynamic;

As i understand this method processes keypressing.
The question is: how to cast Key:Char to Key:Word?

--
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