On 4/12/06, Michael Rebar <[EMAIL PROTECTED]> wrote:
>
> On 4/12/06 9:36 AM, "Jim Dossey" <[EMAIL PROTECTED]> wrote:
>
> > What is supposed to happen in an EditField if you return True in a
> KeyDown
> > event?  I was expecting that the EditField would then pass the KeyDown
> event
> > up to it's parent control, or to the window it is in, but it
> doesn't.  Also
> > if you press a key that the EditField cannot handle (such as a Function
> Key
> > or Control Key) the same thing happens, whether you return True or not.
>
> Returning true signifies that you've handled the event. Returning false
> allows for additional event handling.
>
> Michael


Thanks for all of the replies.  So I guess in the case of the EditField, it
never passes an unhandled KeyDown to it's parent.

In my app I need to let the EditField handle any KeyDowns that are
displayable characters.  But if the user press some other key, like a
function key, I want the code in the window's KeyDown event to handle it.
Is there a way to fire the window's KeyDown event in that case?  Or should I
put all of that code in a method, and then have window.keydown and
editfield.keydown call that method?  (I'm currently doing the later in my
code.  I just want to make sure that's the best way to handle it.)

Jim
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>

Reply via email to