| home | |||
|
|||
| links |
|
||
|
developer's mag main page article part 1 part 2 part 3 part 4 part 5 part 6 part 7 part 8 part 9 |
6 - Group IssuesWhile using CButtonGroup works out well, it has one serious disadvantage - you can't prototype the layout on the Form Editor, since the buttons must be children of the CButtonGroup, rather than the form.To work around this problem, I've written a class to enhance the CRadioButton, called cpaRadioButton. Using this as a springboard you could easily write a class to provide for exclusive pushbuttons as well (or checkboxes, although if you want exclusive checkboxes you should use radio buttons, which are expected to be exclusive). The class is derived from CRadioButton, and just adds a few changes:
Previous Section Next Section |
||
| Copyright © 2001-2006 ebmDevMag.com - Legal Notice | |||