?
Solved

mapping variables to radio buttons

Posted on 1998-07-13
2
Medium Priority
?
251 Views
Last Modified: 2013-11-20
Using the classwizard, I can't seem to map member variables to radio buttons as I can for other dialog controls.
On the "Member Variables" tab, the control IDs of the radio buttons are not even visible. I want to be able to select and deselect different buttons, and initialize the buttons to the state I want. Also, I want to pull the state of the buttons (selected or not selected) off of them at various times.
0
Comment
Question by:nicholso
2 Comments
 
LVL 2

Accepted Solution

by:
jstolan earned 200 total points
ID: 1319076
This is not hard to do.  Make the first radio button in the list have the group box checked (under properties).  Also make sure the other radio buttons follow the first one in the tab order and do not have the group box checked.  Now the first radio button will be displayed in the member variable list box.  The only type of member variable allowed will be integer.  When you look at that variable, it will be 1 if the first radio button is checked, 2 for the second 3 for the third etc.
0
 

Author Comment

by:nicholso
ID: 1319077
thanks, it works. But the variable is 0 for the first control, 1 for the second, etc.


0

Featured Post

[Webinar] Cloud and Mobile-First Strategy

Maybe you’ve fully adopted the cloud since the beginning. Or maybe you started with on-prem resources but are pursuing a “cloud and mobile first” strategy. Getting to that end state has its challenges. Discover how to build out a 100% cloud and mobile IT strategy in this webinar.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Have you tried to learn about Unicode, UTF-8, and multibyte text encoding and all the articles are just too "academic" or too technical? This article aims to make the whole topic easy for just about anyone to understand.
In this post we will learn different types of Android Layout and some basics of an Android App.
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
With just a little bit of  SQL and VBA, many doors open to cool things like synchronize a list box to display data relevant to other information on a form.  If you have never written code or looked at an SQL statement before, no problem! ...  give i…
Suggested Courses

831 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question