• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 384
  • Last Modified:

Adding a radio button


I have an MFC application which has numerous controls and radio buttons. When I add a new radio button, to a group of existing radio buttons, I have to use Ctrl+D to go through all the controls to ensure that the new button follows the previous ones in the group. THIS IS A PAIN!!!

Is there an easier way to do this? I can imagine an scenario where somebody has 50+ controls which they would have to go through just to add an extra radio button. Surely there is an easier way to do it?

  • 2
1 Solution
AndyAinscowFreelance programmer / ConsultantCommented:
Press Ctrl+D.
Now select the control in the tab order before your new radio WHILST HOLDING THE CTRL KEY - it should preserve the existing tab order, now select your new radio - it should be where you want it in the tab order.
AndyAinscowFreelance programmer / ConsultantCommented:
Alternative - modify the .rc file in notepad - the tab order is the order the controls appear in the dialog resource.
IssacJonesAuthor Commented:
Wow - excellent! Thanks
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Hire Technology Freelancers with Gigs

Work with freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely, and get projects done right.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now