?
Solved

mapping variables to radio buttons

Posted on 1998-07-13
2
Medium Priority
?
249 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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

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…
Introduction: Load and Save to file, Document-View interaction inside the SDI. Continuing from the second article about sudoku.   Open the project in visual studio. From the class view select CSudokuDoc and double click to open the header …
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.
If you’ve ever visited a web page and noticed a cool font that you really liked the look of, but couldn’t figure out which font it was so that you could use it for your own work, then this video is for you! In this Micro Tutorial, you'll learn yo…
Suggested Courses

770 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