![]() |
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 |
Draw two frames onto the form, and then draw the radio buttons, with the parent controls being the frames.
|
Sorry but how do I choose what the parent control is?
|
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 |
I cannot actually remember. I've never actually done this in C++ - only in C#.
|
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!
|
:(
What was the solution? |
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.
|
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] |
:-)
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