Thread: radio buttons in group box

  1. #1
    Registered User
    Join Date
    Jul 2003
    Posts
    26

    radio buttons in group box

    I have 10 radio buttons inside of a group box.

    Is there an easier way of lining up all 10 buttons in the group box instead of trying to resize and move each button individually?

    I am using Microsoft Visual C++.

    Thanks,

  2. #2
    Master of the Universe! velius's Avatar
    Join Date
    Sep 2003
    Posts
    219
    Not an already out of the box MFC solution.
    While you're breakin' down my back n'
    I been rackin' out my brain
    It don't matter how we make it
    'Cause it always ends the same
    You can push it for more mileage
    But your flaps r' wearin' thin
    And I could sleep on it 'til mornin'
    But this nightmare never ends
    Don't forget to call my lawyers
    With ridiculous demands
    An you can take the pity so far
    But it's more than I can stand
    'Cause this couchtrip's gettin' older
    Tell me how long has it been
    'Cause 5 years is forever
    An you haven't grown up yet
    -- You Could Be Mine - Guns N' Roses

  3. #3
    Registered User jlou's Avatar
    Join Date
    Jul 2003
    Posts
    1,090
    In the resource editor you can select all of your controls (Ctrl-click each one) and then go to the Layout menu and choose Align->Left or Make Same Size->Both, or whatever you want.

  4. #4
    End Of Line Hammer's Avatar
    Join Date
    Apr 2002
    Posts
    6,231
    Moved to the Windows forum.
    When all else fails, read the instructions.
    If you're posting code, use code tags: [code] /* insert code here */ [/code]

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Radio Buttons in a dialog box
    By Swarvy in forum Windows Programming
    Replies: 3
    Last Post: 01-02-2009, 06:46 PM
  2. New Theme
    By XSquared in forum A Brief History of Cprogramming.com
    Replies: 160
    Last Post: 04-01-2004, 08:00 PM
  3. Default checking of radio button in a group box
    By juhigarg in forum Windows Programming
    Replies: 3
    Last Post: 11-08-2001, 12:25 AM
  4. Default checking of radio button in a group box
    By juhigarg in forum C++ Programming
    Replies: 2
    Last Post: 11-07-2001, 01:31 AM
  5. Group radio buttons
    By ski6ski in forum Windows Programming
    Replies: 0
    Last Post: 09-01-2001, 09:19 AM