Adding a radio button

Posted on 2008-11-04
Last Modified: 2013-11-20

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?

Question by:IssacJones
    LVL 43

    Accepted Solution

    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.
    LVL 43

    Expert Comment

    Alternative - modify the .rc file in notepad - the tab order is the order the controls appear in the dialog resource.

    Author Closing Comment

    Wow - excellent! Thanks

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Threat Intelligence Starter Resources

    Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

    Suggested Solutions

    Title # Comments Views Activity
    Expand macro to ask for filename column 8 33
    haveThree challenge 22 89
    Window placement 17 56
    tripleUp challenge 7 54
    If you use Adobe Reader X it is possible you can't open OLE PDF documents in the standard. The reason is the 'save box mode' in adobe reader X. Many people think the protected Mode of adobe reader x is only to stop the write access. But this fe…
    Exception Handling is in the core of any application that is able to dignify its name. In this article, I'll guide you through the process of writing a DRY (Don't Repeat Yourself) Exception Handling mechanism, using Aspect Oriented Programming.
    This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
    Sending a Secure fax is easy with eFax Corporate ( First, Just open a new email message.  In the To field, type your recipient's fax number You can even send a secure international fax — just include t…

    761 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    8 Experts available now in Live!

    Get 1:1 Help Now