Visual FoxPro Developer Center >
Visual FoxPro Forums
>
Visual FoxPro General
>
RadioButton vs. CommandGroup
RadioButton vs. CommandGroup
- Using VFP 9 sp2, I wanted to create a set of, what we used to call, radio buttons. The original radio buttons always highlighted the selected button by giving it the appearance of being indented, or pushed in. Is there a setting for the Commandgroup that simulates this? I read the VFP help, and played with most settings but could not get what I was looking for.The SpecialEffect property, when set to Hot Tracking, created this effect as long as the commandgroup had focus. Once it lost focus, it reverted back.I am sure I am doing something wrong, but not sure what it is.Any help appreciated.Thanks
Dick Day
Answers
Thank you both for such quick replies.
There is a miscommunication here I think. CommandGroup and CommandButtons do not have something similar. Wht vfp4ever and Andy is saying is about radio buttons (OptionGroup not CommandGroup). If you need somehting that shows a toggle state and only one of the items can be toggled in a group then use OptionGroup with setting its individual OptionButton's Style to graphical. If you want multiple 'buttons' that you can toggle then use multiple checkbox controls with style = 1 Graphical.It must be Sunday morning brain fog, but the Style property gives me two settings, 0=Standard and 1-Invisible.The Themes setting is set to true.Any thoughts?Thanks
Dick Day- Marked As Answer byDickDay Sunday, November 08, 2009 5:40 PM
All Replies
Hi
Did you tried to set Style = 1 for each option (Not OptionGroup itself)?- Yes. Set use an Option button and set the individual button STYLE = 1 (GRAPHICAL) then you will get the effect you want
-- Andy Kramek - Thank you both for such quick replies.It must be Sunday morning brain fog, but the Style property gives me two settings, 0=Standard and 1-Invisible.The Themes setting is set to true.Any thoughts?Thanks
Dick Day Thank you both for such quick replies.
There is a miscommunication here I think. CommandGroup and CommandButtons do not have something similar. Wht vfp4ever and Andy is saying is about radio buttons (OptionGroup not CommandGroup). If you need somehting that shows a toggle state and only one of the items can be toggled in a group then use OptionGroup with setting its individual OptionButton's Style to graphical. If you want multiple 'buttons' that you can toggle then use multiple checkbox controls with style = 1 Graphical.It must be Sunday morning brain fog, but the Style property gives me two settings, 0=Standard and 1-Invisible.The Themes setting is set to true.Any thoughts?Thanks
Dick Day- Marked As Answer byDickDay Sunday, November 08, 2009 5:40 PM
- Thank you! Light bulbs just went off :)Yes, that is exactly what I need.Thanks to all!
Dick Day


