I have 2 sets of Radiobuttons the first has 2 buttons, the second has 3
buttons for a total of 5.  Both groups are inside groupboxes and the
groupboxes are one above the other in my dialogbox.

The problem is that only 1 of the 5 buttons can be checked. It is like they
are all in the same group and not 2 separate groups.

Any idea what I need to do to make these 2 groups independant of each other?

There is an undocumented option for RadioButton, '-group'. When set to a true value, it makes a RadioButton the first one of a group. All subsequent RadioButtons belong to that group until another RadioButtons has -group set to a true value. (Technically, '-group' is an option for any control, and every control of any type belongs to the group, but as far as I know, RadioButton is the only control whose behavior is actually modified by the option.)

I hope I'm remembering this correctly, and not giving you bad info. I don't have Win32::GUI installed on the machine I'm sitting at right now, so I can't test and make sure.

-Sean

_________________________________________________________________
Fast, faster, fastest: Upgrade to Cable or DSL today! https://broadband.msn.com


Reply via email to