Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old Jun 6th, 2005, 4:45 PM   #1
uman
Expert Programmer
 
Join Date: Dec 2004
Posts: 794
Rep Power: 4 uman is on a distinguished road
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
uman is offline   Reply With Quote
Old Jun 6th, 2005, 4:55 PM   #2
Ooble
I eat cake for breakfast.
 
Ooble's Avatar
 
Join Date: Jul 2004
Location: In my box.
Posts: 4,434
Rep Power: 9 Ooble is on a distinguished road
Draw two frames onto the form, and then draw the radio buttons, with the parent controls being the frames.
__________________
Me :: You :: Them
Ooble is offline   Reply With Quote
Old Jun 6th, 2005, 5:03 PM   #3
uman
Expert Programmer
 
Join Date: Dec 2004
Posts: 794
Rep Power: 4 uman is on a distinguished road
Sorry but how do I choose what the parent control is?
uman is offline   Reply With Quote
Old Jun 6th, 2005, 5:05 PM   #4
uman
Expert Programmer
 
Join Date: Dec 2004
Posts: 794
Rep Power: 4 uman is on a distinguished road
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
uman is offline   Reply With Quote
Old Jun 6th, 2005, 5:06 PM   #5
Ooble
I eat cake for breakfast.
 
Ooble's Avatar
 
Join Date: Jul 2004
Location: In my box.
Posts: 4,434
Rep Power: 9 Ooble is on a distinguished road
I cannot actually remember. I've never actually done this in C++ - only in C#.
__________________
Me :: You :: Them
Ooble is offline   Reply With Quote
Old Jun 6th, 2005, 5:20 PM   #6
uman
Expert Programmer
 
Join Date: Dec 2004
Posts: 794
Rep Power: 4 uman is on a distinguished road
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!
uman is offline   Reply With Quote
Old Jun 6th, 2005, 5:22 PM   #7
Ooble
I eat cake for breakfast.
 
Ooble's Avatar
 
Join Date: Jul 2004
Location: In my box.
Posts: 4,434
Rep Power: 9 Ooble is on a distinguished road


What was the solution?
__________________
Me :: You :: Them
Ooble is offline   Reply With Quote
Old Jun 6th, 2005, 5:37 PM   #8
uman
Expert Programmer
 
Join Date: Dec 2004
Posts: 794
Rep Power: 4 uman is on a distinguished road
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.
uman is offline   Reply With Quote
Old Jun 6th, 2005, 5:39 PM   #9
Ancient Dragon
PFO God In Training
 
Ancient Dragon's Avatar
 
Join Date: Jun 2005
Location: near St Louis, MO. (USA)
Posts: 499
Rep Power: 4 Ancient Dragon is on a distinguished road
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]
Ancient Dragon is offline   Reply With Quote
Old Jun 6th, 2005, 5:51 PM   #10
uman
Expert Programmer
 
Join Date: Dec 2004
Posts: 794
Rep Power: 4 uman is on a distinguished road
:-)
thanks anyway.
uman is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 1:55 AM.

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