Author: Ed Leafe
Posted: 2008-09-21 at 20:18:15
On Sep 21, 2008, at 6:12 PM, Paul McNary wrote:
> From within a grid.
> What I am needing to do is catch the TAB key event, which I am doing.
> Then I want to setFocus to a textbox on the form.
>
> I catch the TAB with onKeyDown, then I do the
> self.Form.txtbxXX.setFocus()
> When I'm done it is still in the grid.
> I've tried evt.stop() in the onKeyDown but can't seem to
> figure out how to get out of the grid
On my way out at the moment, so I can't test, but try this: in the
KeyDown event handler, try issuing:
evt.stop()
That should prevent the event from being passed to the wx layer.
-- Ed Leafe