Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

mapping variables to radio buttons

Posted on 1998-07-13
2
Medium Priority
?
250 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

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…
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.
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.
Video by: ITPro.TV
In this episode Don builds upon the troubleshooting techniques by demonstrating how to properly monitor a vSphere deployment to detect problems before they occur. He begins the show using tools found within the vSphere suite as ends the show demonst…
Suggested Courses

636 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