StrataFrame Forum

radiobuttongroup issue

http://forum.strataframe.net/Topic11195.aspx

By Marcel Heitlager - 8/28/2007

Whenever I create a radio button group and put it in a themedgroup box.  After a while when I check it will show a radio button called option 2 transposed over the original 2nd radio button.

It doesn't matter whether I have 3 or 5 buttons.  And it only does it to the 2nd option.  If I delete the button it appears again after the next build.  If I erase the group and create a new one, after a while the option2 button appears again.  Sometimes there will be 3, 4, 5 or more option2 buttons superimposed over each other.

When I run the application, Sometimes when that option2 button is there and I handle the optiongroup_propertychanged event, I get stuck in an endless loop.

Any thoughts?

Marcel

By StrataFrame Team - 8/29/2007

The OptionGroup is kind of a map to the old option group from VFP.  It's most likely that your RadioButtonCount is not correct.  The control is designed so that rather than you drop new RadioButtons on the control, you change the RadioButtonCount property and it creates/removes the buttons as needed.  Once they are created, you can then set the properties appropriately (like name and value).  It's probably just gotten out of sync.
By Marcel Heitlager - 8/30/2007

I have been using them the way you described.  Still wondering why it gets out of sync though.  For now, I'll just check every time to make sure there is not "option 2" button in the list, and delete them when the pop-up.
By fansanitis - 2/6/2008

Was there ever a resolution on this problem?  I experiencing the same symptoms.  I create a RadioButtonGroup and it automatically gives me 2 RadioButtons with MyValue set to 1 and 2.  I then change the RadioButtonCount to 4 and it give me 2 more RadioButtons with MyValue set to 3 and 4.  It seems when I try and rearrage the RadioButtons and resize the RadioButtonGroup 2 more RadioButtons automatically get added.  I can then delete the unwanted RadioButtons but they keep popping up.   ????
By Trent L. Taylor - 2/6/2008

Hmmm...we use the radiogroup in a number of places and I have not seen this behavior.  Like you have seen on some other posts, if you can create a simple sample that reproduces the problem I would be happy to look at it...but I cannot reproduce this from the information in this thread.  Sorry Ermm