![]() |
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Expert Programmer
Join Date: Dec 2004
Posts: 794
Rep Power: 4
![]() |
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 |
|
|
|
|
|
#2 |
|
I eat cake for breakfast.
![]() ![]() ![]() ![]() Join Date: Jul 2004
Location: In my box.
Posts: 4,434
Rep Power: 9
![]() |
Draw two frames onto the form, and then draw the radio buttons, with the parent controls being the frames.
|
|
|
|
|
|
#3 |
|
Expert Programmer
Join Date: Dec 2004
Posts: 794
Rep Power: 4
![]() |
Sorry but how do I choose what the parent control is?
|
|
|
|
|
|
#4 |
|
Expert Programmer
Join Date: Dec 2004
Posts: 794
Rep Power: 4
![]() |
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 |
|
|
|
|
|
#5 |
|
I eat cake for breakfast.
![]() ![]() ![]() ![]() Join Date: Jul 2004
Location: In my box.
Posts: 4,434
Rep Power: 9
![]() |
I cannot actually remember. I've never actually done this in C++ - only in C#.
|
|
|
|
|
|
#6 |
|
Expert Programmer
Join Date: Dec 2004
Posts: 794
Rep Power: 4
![]() |
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!
|
|
|
|
|
|
#7 |
|
I eat cake for breakfast.
![]() ![]() ![]() ![]() Join Date: Jul 2004
Location: In my box.
Posts: 4,434
Rep Power: 9
![]() |
![]() What was the solution? |
|
|
|
|
|
#8 |
|
Expert Programmer
Join Date: Dec 2004
Posts: 794
Rep Power: 4
![]() |
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.
|
|
|
|
|
|
#9 |
|
PFO God In Training
![]() Join Date: Jun 2005
Location: near St Louis, MO. (USA)
Posts: 499
Rep Power: 4
![]() |
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] |
|
|
|
|
|
#10 |
|
Expert Programmer
Join Date: Dec 2004
Posts: 794
Rep Power: 4
![]() |
:-)
thanks anyway. |
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|