Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. Radio Button problem

Radio Button problem

Scheduled Pinned Locked Moved C / C++ / MFC
jsonhelpquestion
4 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    Shenthil
    wrote on last edited by
    #1

    I have created a dialog with 4 sets of radio buttons groups. for the first 2, its working fine. but for the rest of the radio buttons group, only one is selecting. When the save and close, its saved. But while displaying, its displaying as only one radio button checked out of all. Where the problem would be?

    A A 2 Replies Last reply
    0
    • S Shenthil

      I have created a dialog with 4 sets of radio buttons groups. for the first 2, its working fine. but for the rest of the radio buttons group, only one is selecting. When the save and close, its saved. But while displaying, its displaying as only one radio button checked out of all. Where the problem would be?

      A Offline
      A Offline
      AnsGe
      wrote on last edited by
      #2

      Hai Your question is not cleared. I think the problem is where the groups u have created. Please confirm that the group check box for the First radio button of every group should be marked. Regards Anish

      1 Reply Last reply
      0
      • S Shenthil

        I have created a dialog with 4 sets of radio buttons groups. for the first 2, its working fine. but for the rest of the radio buttons group, only one is selecting. When the save and close, its saved. But while displaying, its displaying as only one radio button checked out of all. Where the problem would be?

        A Offline
        A Offline
        Antti Keskinen
        wrote on last edited by
        #3

        The radio button grouping uses the tab order for determining the group to which the radio button belongs. In english, this means that in your dialog resource, the tab order of the radio buttons must run from RADIO_1_GROUP_1 -> RADIO_2_GROUP_1 -> RADIO_1_GROUP_2 -> RADIO_2_GROUP_2 -> etc. in a consecutive order. So, if the first radio button has tab order 3, the next must have 4, the next 5 and so forth. Now, only the first button of each group should have the group flag set. This flag determines the starting point of the group. Whenever a control with a group flag set is found in the tab order, a new group begins. All radio buttons before this 'flagged radio button' belong to the group specified by the previous 'flagged button'. If no previous group is found before the start of the tabbing order, then those controls remain ungrouped. Here[^] is a link to MSDN for more information. -Antti Keskinen ---------------------------------------------- The definition of impossible is strictly dependant on what we think is possible.

        S 1 Reply Last reply
        0
        • A Antti Keskinen

          The radio button grouping uses the tab order for determining the group to which the radio button belongs. In english, this means that in your dialog resource, the tab order of the radio buttons must run from RADIO_1_GROUP_1 -> RADIO_2_GROUP_1 -> RADIO_1_GROUP_2 -> RADIO_2_GROUP_2 -> etc. in a consecutive order. So, if the first radio button has tab order 3, the next must have 4, the next 5 and so forth. Now, only the first button of each group should have the group flag set. This flag determines the starting point of the group. Whenever a control with a group flag set is found in the tab order, a new group begins. All radio buttons before this 'flagged radio button' belong to the group specified by the previous 'flagged button'. If no previous group is found before the start of the tabbing order, then those controls remain ungrouped. Here[^] is a link to MSDN for more information. -Antti Keskinen ---------------------------------------------- The definition of impossible is strictly dependant on what we think is possible.

          S Offline
          S Offline
          Shenthil
          wrote on last edited by
          #4

          Thanks. My Problem is solved

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups