|
Hello Everyone,
I have added 4 group Boxes on my Dialog based App and in Each Group there are 3 Radio Buttons.
According to the user's Selection, i want to get the combination of radio Buttons and Function according to the selection?
For Ex:- In one group Box there are 3 Radio Buttons say 600 DPI,
300 DPI and
150 DPI.
and same in the other Group Box. Suppose if user has selected 300 DPI in one Group Box and 150 DPI in Other Group Box. Then i want to know how to get that user has selected so and so combination.
I m using GetCheckedRadioButon(1stRadioID, LastRadioID) but m not getting anything from that?
Please help me Out.
|
|
|
|
|
Group boxes might be causing the issue.
See here
You talk about Being HUMAN. I have it in my name
AnsHUMAN
|
|
|
|
|
Do you have the WS_GROUP style set correctly? That style should be set only for the first radio button in the group.
Anurag Kela wrote: I m using GetCheckedRadioButon(1stRadioID, LastRadioID) but m not getting anything from that? So it's returning 0 ?
"One man's wage rise is another man's price increase." - Harold Wilson
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
"Show me a community that obeys the Ten Commandments and I'll show you a less crowded prison system." - Anonymous
|
|
|
|
|
I'm assuming you're using an MFC based dialog application.
If this assumption is right, read on.
For the first radio button of each group, set its Group property to True .
Right click on this radio button and select Add Variable and create an integer variable.
The above step is only possible with a radio button whose Group property is set to True.
To get the user selection, simply call UpdateData() and the integer variable will contain the 0-based index of the selected radio button.
|
|
|
|