radiobuttongroup issue


Author
Message
Marcel Heitlager
Marcel Heitlager
StrataFrame User (202 reputation)StrataFrame User (202 reputation)StrataFrame User (202 reputation)StrataFrame User (202 reputation)StrataFrame User (202 reputation)StrataFrame User (202 reputation)StrataFrame User (202 reputation)StrataFrame User (202 reputation)StrataFrame User (202 reputation)
Group: StrataFrame Users
Posts: 84, Visits: 835
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

StrataFrame Team
S
StrataFrame Developer (4.4K reputation)StrataFrame Developer (4.4K reputation)StrataFrame Developer (4.4K reputation)StrataFrame Developer (4.4K reputation)StrataFrame Developer (4.4K reputation)StrataFrame Developer (4.4K reputation)StrataFrame Developer (4.4K reputation)StrataFrame Developer (4.4K reputation)StrataFrame Developer (4.4K reputation)
Group: StrataFrame Developers
Posts: 3K, Visits: 2.5K
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.
Marcel Heitlager
Marcel Heitlager
StrataFrame User (202 reputation)StrataFrame User (202 reputation)StrataFrame User (202 reputation)StrataFrame User (202 reputation)StrataFrame User (202 reputation)StrataFrame User (202 reputation)StrataFrame User (202 reputation)StrataFrame User (202 reputation)StrataFrame User (202 reputation)
Group: StrataFrame Users
Posts: 84, Visits: 835
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.
fansanitis
fansanitis
StrataFrame Novice (55 reputation)StrataFrame Novice (55 reputation)StrataFrame Novice (55 reputation)StrataFrame Novice (55 reputation)StrataFrame Novice (55 reputation)StrataFrame Novice (55 reputation)StrataFrame Novice (55 reputation)StrataFrame Novice (55 reputation)StrataFrame Novice (55 reputation)
Group: Forum Members
Posts: 45, Visits: 103
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.   ????
Trent Taylor
Trent Taylor
StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)
Group: StrataFrame Developers
Posts: 6.6K, Visits: 6.9K
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
GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Similar Topics

Reading This Topic

Login

Explore
Messages
Mentions
Search