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
Solved

mapping variables to radio buttons

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

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone 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

Suggested Solutions

Title # Comments Views Activity
cat dog challenge 18 127
difference between String.subString() and String.subSequence() 6 237
sum13 challenge 24 123
Modbus - whats the maximum I can store in one register? 4 80
Introduction: Finishing the grid – keyboard support for arrow keys to manoeuvre, entering the numbers.  The PreTranslateMessage function is to be used to intercept and respond to keyboard events. Continuing from the fourth article about sudoku. …
Introduction: Dialogs (2) modeless dialog and a worker thread.  Handling data shared between threads.  Recursive functions. Continuing from the tenth article about sudoku.   Last article we worked with a modal dialog to help maintain informat…
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.
Microsoft Active Directory, the widely used IT infrastructure, is known for its high risk of credential theft. The best way to test your Active Directory’s vulnerabilities to pass-the-ticket, pass-the-hash, privilege escalation, and malware attacks …

829 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