Solved

mapping variables to radio buttons

Posted on 1998-07-13
2
242 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 50 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

What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

This is to be the first in a series of articles demonstrating the development of a complete windows based application using the MFC classes.  I’ll try to keep each article focused on one (or a couple) of the tasks that one may meet.   Introductio…
Introduction: Dynamic window placements and drawing on a form, simple usage of windows registry as a storage place for information. Continuing from the first article about sudoku.  There we have designed the application and put a lot of user int…
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.
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

746 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now