Click here to Skip to main content
15,914,447 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: OleAutomation Pin
Carlos Antollini20-Sep-01 10:53
Carlos Antollini20-Sep-01 10:53 
GeneralRe: OleAutomation Pin
duggie24-Sep-01 10:09
duggie24-Sep-01 10:09 
GeneralRe: OleAutomation Pin
Carlos Antollini25-Sep-01 9:15
Carlos Antollini25-Sep-01 9:15 
GeneralRe: OleAutomation Pin
duggie28-Sep-01 8:09
duggie28-Sep-01 8:09 
GeneralRe: OleAutomation Pin
Carlos Antollini28-Sep-01 8:14
Carlos Antollini28-Sep-01 8:14 
GeneralRadio Btns Pin
john john mackey20-Sep-01 7:08
john john mackey20-Sep-01 7:08 
GeneralRe: Radio Btns Pin
Ravi Bhavnani20-Sep-01 7:55
professionalRavi Bhavnani20-Sep-01 7:55 
GeneralRe: Radio Btns Pin
Ravi Bhavnani20-Sep-01 11:21
professionalRavi Bhavnani20-Sep-01 11:21 
I think you want the "parent" buttons to belong to one group, and each collection of "sub-buttons" belong to individual groups.

Also, this seems like a good candidate for a mediator pattern. The sub-buttons would be listeners of the mediator. When a parent radio button is (un)checked, a message would be sent to the mediator, which would fire notifications to the sub-button. A sub-button would query the mediator for its enabled/disabled state.

You can also use the mediator to set focus to a specific group of sub-buttons when a parent is clicked. This makes the GUI user-friendly.

Finally, I would consider a different GUI approach. Choices within choices are easier to select when only ONE value of the parent is known at any time. For example, the parent radio buttons could be replaced by a single combo box which would cause a different set of sub-buttons to appear. You could also use one of these approaches:

http://codeproject.com/property/saprefs.asp
http://codeproject.com/dialog/ezoptionsdlg.asp

/ravi

"There is always one more bug..."
http://www.ravib.com
ravib@ravib.com
GeneralBeginning whit ActiveX... How-To make an activeX control Pin
Remi Morin20-Sep-01 5:43
Remi Morin20-Sep-01 5:43 
GeneralUnrecognised Database Format Pin
sriram_mr19-Sep-01 23:45
sriram_mr19-Sep-01 23:45 
GeneralRe: Unrecognised Database Format Pin
Oscar Vazquez21-Sep-01 11:54
Oscar Vazquez21-Sep-01 11:54 
GeneralExplorer Like Resizing Pin
Ray Kinsella19-Sep-01 23:13
Ray Kinsella19-Sep-01 23:13 
GeneralRe: Explorer Like Resizing Pin
Christian Graus19-Sep-01 23:36
protectorChristian Graus19-Sep-01 23:36 
GeneralRe: Explorer Like Resizing Pin
Ray Kinsella19-Sep-01 23:59
Ray Kinsella19-Sep-01 23:59 
GeneralRe: Explorer Like Resizing Pin
Michael P Butler20-Sep-01 0:38
Michael P Butler20-Sep-01 0:38 
GeneralRe: Explorer Like Resizing Pin
Michael Dunn20-Sep-01 9:32
sitebuilderMichael Dunn20-Sep-01 9:32 
GeneralADSI: CREATE ATTRIBUTE FAILED Pin
19-Sep-01 22:11
suss19-Sep-01 22:11 
GeneralCreating DB #1 Pin
The_Server19-Sep-01 20:57
The_Server19-Sep-01 20:57 
GeneralRe: Creating DB #1 Pin
Ray Kinsella19-Sep-01 23:16
Ray Kinsella19-Sep-01 23:16 
GeneralRe: Creating DB #1 Pin
Tomasz Sowinski20-Sep-01 9:00
Tomasz Sowinski20-Sep-01 9:00 
QuestionHow to Convert CString to Char* Pin
pathi19-Sep-01 18:29
pathi19-Sep-01 18:29 
AnswerRe: How to Convert CString to Char* Pin
Nemanja Trifunovic19-Sep-01 19:08
Nemanja Trifunovic19-Sep-01 19:08 
GeneralRe: How to Convert CString to Char* Pin
Michael Dunn19-Sep-01 19:43
sitebuilderMichael Dunn19-Sep-01 19:43 
AnswerRe: How to Convert CString to Char* Pin
Christian Graus19-Sep-01 19:25
protectorChristian Graus19-Sep-01 19:25 
AnswerRe: How to Convert CString to Char* Pin
CodeGuy20-Sep-01 3:37
CodeGuy20-Sep-01 3:37 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.