Has anyone tried to have multiple sets of radio buttons in a DataWindow,
and use keyboard accelerators with them? I could not get it to work if the
accelerators were repeated. For example, there are three radiobutton
fields, where the button labels are "&Left" and "&Right". When run (or
previewed), only the set that had been "sent to back" last would get the
keyboard input, even if the itemFocus was on a different item that had the
same accelerators.
And, our customer does not want us to preselect a default radio button
(so as not to influence the user). This means that if the focus is on the
radiobutton the user wants to select, the user has to use the arrows to move
the a different one, then move back. This is very non-intuitive (sort of
like clicking Start in order to Shut Down).
In case I didn't mention it, this is a "heads down, hands on" data entry
application, and mouse considerations are not even secondary. They're way
down on the list.
Anyway... to make a long story--that you're probably not interested
in--short, I created a dwService that when instantiated loops through the
DWO and extracts out the keyboard accelerators from all of the radio button
fields. Upon initialization, it clear them. Then, it interfaces with the
itemFocusChanged event to set them on the radio button that has focus. It
works, and the code is clean.
If you have such a need, let me know, and I'll send you the source.
--dang
``Beware of bugs in the above code; I have only proved it correct, not tried
it.'' --Donald Knuth, to a reviewer of a draft of The Art of Computer
Programming
> [EMAIL PROTECTED] HOSTED BY IIGG, INC. FOR HELP WITH LIST SERVE COMMANDS, ADDRESS
> A MESSAGE TO [EMAIL PROTECTED] WITH THE FOLLOWING MESSAGE: help pfcsig
> SEND ALL OTHER INQUIRES TO [EMAIL PROTECTED]