I think this has already been asked for but don’t know for sure:
Would it be possible to set a button on a form to default?
Thanks…
I think this has already been asked for but don’t know for sure:
Would it be possible to set a button on a form to default?
Thanks…
to default what?
select the button on
enter key? on entering the form? to do what?
I have a form with two buttons ‘cancel’ and ‘ok’.
I would like to, if I press the enter button, select the ‘cancel’ button by default without having to press is…
Where ‘cancel’ button can be every button I wish…
On Windows (and I think Linux/Unix) you can do elements.buttoname.requestFocus() on the formshow event. Unfortunately Stevie has decided that on Mac a button can’t have focus, it appears that they have started changing their mind on this topic as with Panther I discovered an option in preferences named “Turn on full keyboard access” which gives it a ms-style keyboard access to various elements, unfortunately they haven’t implemented this (yet) in their Java implementation.