realbasic-nug
[Top] [All Lists]

Re: Canvas.KeyDown broken?

To: REALbasic Network Users Group <realbasic-nug at lists dot realsoftware dot com>
Subject: Re: Canvas.KeyDown broken?
From: David Grogono <dave at realsoftware dot com>
Date: Thu, 07 Feb 2002 14:55:17 -0600
The canvas will only get KeyDown events while it has focus.  So check the
"AcceptFocus" checkbox in the IDE.  You may also want to set the focus to
the canvas on MouseDown if that's appropriate for your needs.

David

> I'm desperately trying to use the KeyDown event in my canvas class - but no
> event ever reaches it...
> 
> Simple test project: canvas in a window - in the open event of the canvas:
> me.setfocus - in the KeyDown event of the canvas: beep.
> 
> Does not work. Any suggestions?
> 
> TIA,
> 
> Jörg

--
David Grogono
dave at realsoftware dot com



<Prev in Thread] Current Thread [Next in Thread>