Can I just confirm Alt handling etc

new topic     » topic index » view thread      » older message » newer message

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

new topic     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu