Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

"Option Button Control" Pressing TAB

Status
Not open for further replies.

UncleT

Programmer
Sep 26, 2001
133
US
Hello,

I've got a form that has 5 option buttons (Radio Buttons) on it. I want the user to be able to tab between them with the tab button. Right now I can tab to the first button and when I press tab again it goes to the next control not the next option button.

The option buttons are indexed buttons and the TABINDEX is correct 1,2,3,4,5.

What am I doing wrong?
 
You would need to put each one in a container i.e. a frame or use the cursor keys to move up and down them rather than tab.

Not sure if you can cause them to tab between each other.
 
Put each button in a frame and set the frames border styles to zero (none)

[gray]Experience is something you don't get until just after you need it.[/gray]
 
But be aware, if you put them in the different frames, you will negate the very idea of using them as a group.

 
Furthermore, this is contrary to the Windows convention with regard to this type of selection. You might consider training your users to use the arrow keys to do this, as has been the convention for over 20 years and as is already supported. (Also, you might consider reprogramming the space bar for this, since this has often been supported as well.) However, the tab key is intended to move from control group to control group, and reprogramming it to hit each option button rather than just the selected one is not a step that should be lightly taken.

HTH

Bob
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top