Can I just confirm Alt handling etc
- Posted by petelomax at blueyonder.co.uk Mar 21, 2002
- 518 views
I have a button (or two): constant Browse = create( PushButton, "&Browse", blah blah ... procedure onclickBrowse() blah blah onClick[Browse]=routine_id("onclickBrowse") works fine. Alt B correctly shifts focus to the button. At the mo, Alt B does not invoke onclickBrowse(). (not exactly surprised, I guess I ain't told it to yet) Question:: Do I need: onKeyDown [ xxx ] = routine_id("xxx") for *every* widget to point to the same routine, then, via getSelf() figure out what to do for eg Return, and trap/process Alt B (and all the other buttons) in one place? Is that the "best" way to code it? Can I rely on "onKeyDown[<not specified>]" looking up & invoking the parent, or not? Pete