On Fri, 02 Nov 2007 10:57:08 +0300
12 12 <[EMAIL PROTECTED]> wrote:
> > 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?
If you mean unicode keys, use the UTF8 key functions of the LCL. e.g.
IntfUTF8KeyPress.
Mattias
_________________________________________________________________
To unsubscribe: mail [EMAIL PROTECTED] with
"unsubscribe" as the Subject
archives at http://www.lazarus.freepascal.org/mailarchives