Programming Forums

Programming Forums (http://www.programmingforums.org/forumindex.php)
-   C++ (http://www.programmingforums.org/forum15.html)
-   -   Multiple sets of radio buttons -- Win32 API (http://www.programmingforums.org/showthread.php?t=4332)

uman Jun 6th, 2005 4:45 PM

Multiple sets of radio buttons -- Win32 API
 
Obviously all of the radio buttons in a dialog are mutually exclusive. How can I make it so that there are 2 sets of radio buttons, so that the choices in one set are independant of the choices in the other. What this means is that there will be two radio buttons selected, one from each group. How can I accomplish this?

IDE: Visual Studio .NET 2003

Ooble Jun 6th, 2005 4:55 PM

Draw two frames onto the form, and then draw the radio buttons, with the parent controls being the frames.

uman Jun 6th, 2005 5:03 PM

Sorry but how do I choose what the parent control is?

uman Jun 6th, 2005 5:05 PM

Er... I don't even have a "frame" control.

THe controls I have are as follows:

Button
Chcek Box
Edit Control
Combo Box
List Box
Group Box
Radio Button
Static Text
Picture Control
Horizontal Scroll Bar
Vertical Scroll Bar
Slider Control
Spin Control
Progress Control
Hot Key
List Control
Tree Control
Tab Control
Animation Control
Rich Edit 2.0 Control
Date Time Picker
month Calendar Control
IP Address Control
Extended Combo Box
Custom Control

Ooble Jun 6th, 2005 5:06 PM

I cannot actually remember. I've never actually done this in C++ - only in C#.

uman Jun 6th, 2005 5:20 PM

ok lol... the information was COMPLETELY different from what you said, but someone else showed me. I think we should subtract 500 from your postcount as punishment for spreading C# propaganda in other forums. Only IR is allowed to do that!

Ooble Jun 6th, 2005 5:22 PM

:(

What was the solution?

uman Jun 6th, 2005 5:37 PM

set the "GROUP" property of the first radio button in the first radio button of each group to true. The groups are determined by tab order and delimited by the buttons with GROUP = true.

Ancient Dragon Jun 6th, 2005 5:39 PM

Buttons have a Group property -- the first button with Group property set is the button that controls the start of a group. So if you have six buttons and want two groups, set the group property on the first and third buttons. Make sure the tab settings are set correctly too.

I write only MFC programs and that is very easy to set with VC++ 6.0 resource editor. I don't know how to set those manually in the *.rc file.

[edit]Sorry uman, we were typing at the same time :) [/edit]

uman Jun 6th, 2005 5:51 PM

:-)
thanks anyway.


All times are GMT -5. The time now is 5:34 PM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC