| |

VerySource

 Forgot password?
 Register
Search
View: 723|Reply: 4

Radio buttons cannot be determined

[Copy link]

1

Threads

2

Posts

3.00

Credits

Newbie

Rank: 1

Credits
3.00

 Australia

Post time: 2020-1-4 10:20:01
| Show all posts |Read mode
How can I select more than two radio buttons,
In a group box, the first person is set to the GROUP item.
Still doesn't work.
void CMy123Dlg :: OnShowSexAgeButton ()
{
UpdateData (TRUE);
char sedit [50];
int isexradio;
int iageradio;
isexradio = GetCheckedRadioButton (IDC_BOY_RADIO, IDC_GIRL_RADIO);
if (isexradio == IDC_BOY_RADIO)
strcpy (sedit, "the boy's age is");
    else if (isexradio == IDC_GIRL_RADIO)
strcpy (sedit, "the girl's age is");
iageradio = GetCheckedRadioButton (IDC_AGE1_RADIO, IDC_AGE3_RADIO);
if (iageradio == IDC_AGE1_RADIO)
strcat (sedit, "great than 25");
else if (iageradio == IDC_AGE2_RADIO)
strcat (sedit, "between 20 and 25");
else if (iageradio == IDC_AGE3_RADIO)
strcat (sedit, "less than 20");
m_resultedit.SetSel (0, -1);
m_resultedit.ReplaceSel (sedit);
UpdateData (FALSE);
}
Reply

Use magic Report

0

Threads

12

Posts

9.00

Credits

Newbie

Rank: 1

Credits
9.00

 China

Post time: 2020-1-5 01:00:01
| Show all posts
Set up several groups
Grouping is determined by tab order
Reply

Use magic Report

1

Threads

2

Posts

3.00

Credits

Newbie

Rank: 1

Credits
3.00

 China

 Author| Post time: 2020-1-5 17:12:01
| Show all posts
In the meaning of upstairs, it is a radio button in a group. TAB must be connected, and nothing can be inserted in the middle, right?

If you want to modify it, do you have to redo it?
Reply

Use magic Report

0

Threads

25

Posts

14.00

Credits

Newbie

Rank: 1

Credits
14.00

 China

Post time: 2020-1-6 19:30:01
| Show all posts
No need to redo.
Just adjust it in the resource editor.
Reply

Use magic Report

0

Threads

4

Posts

3.00

Credits

Newbie

Rank: 1

Credits
3.00

 China

Post time: 2020-1-7 12:57:01
| Show all posts
On the dialog panel, press Ctrl + D, and then confirm the order with the left mouse button.
Reply

Use magic Report

You have to log in before you can reply Login | Register

Points Rules

Contact us|Archive|Mobile|CopyRight © 2008-2023|verysource.com ( 京ICP备17048824号-1 )

Quick Reply To Top Return to the list