#1
  1. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Sep 2003
    Location
    Massachusetts
    Posts
    22
    Rep Power
    0

    radio button trouble


    I have a group of radio buttons. The user selects one. The dialog then closes. When the user open the dialog back up I would like the same radio button selected. There are 5 radio buttons selected and by default when the app starts it selects the third button. I know how to find out which button is selected but I am not sure how to display it, the next time that dialog opens.
    Here is how I set my default:
    CheckRadioButton(IDC_RADIO1, IDC_RADIO5, IDC_RADIO3);

    Thanks in advance
    Chris
  2. #2
  3. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Feb 2003
    Location
    USA
    Posts
    144
    Rep Power
    12
    Hi Chris,

    Are you wondering how to store which radio button the user chose and then have that same radio selected when you restart your application?

    If that's what you mean, you'll have to store that information outside your program like in a text file or in the registry, then read it back in when you start your application. I can give you an example using the registry to store the user's choice, please let me know if you would like it and I'll post it.

IMN logo majestic logo threadwatch logo seochat tools logo