radiobuttongroup issue


Author
Message
Marcel Heitlager
Marcel Heitlager
StrataFrame User (276 reputation)StrataFrame User (276 reputation)StrataFrame User (276 reputation)StrataFrame User (276 reputation)StrataFrame User (276 reputation)StrataFrame User (276 reputation)StrataFrame User (276 reputation)StrataFrame User (276 reputation)StrataFrame User (276 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

Replies
StrataFrame Team
S
StrataFrame Developer (6.5K reputation)StrataFrame Developer (6.5K reputation)StrataFrame Developer (6.5K reputation)StrataFrame Developer (6.5K reputation)StrataFrame Developer (6.5K reputation)StrataFrame Developer (6.5K reputation)StrataFrame Developer (6.5K reputation)StrataFrame Developer (6.5K reputation)StrataFrame Developer (6.5K 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 (276 reputation)StrataFrame User (276 reputation)StrataFrame User (276 reputation)StrataFrame User (276 reputation)StrataFrame User (276 reputation)StrataFrame User (276 reputation)StrataFrame User (276 reputation)StrataFrame User (276 reputation)StrataFrame User (276 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.
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