Ask a questionAsk a question
 

AnswerRadioButton vs. CommandGroup

  • Sunday, November 08, 2009 1:36 AMDickDay Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    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

  • Sunday, November 08, 2009 3:59 PMCetinBasozMVPUsers MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     Answer
    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
    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.
    • Marked As Answer byDickDay Sunday, November 08, 2009 5:40 PM
    •  

All Replies

  • Sunday, November 08, 2009 11:03 AMfvp4ever Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     

    Hi
    Did you tried to set Style = 1 for each option (Not OptionGroup itself)?

  • Sunday, November 08, 2009 11:45 AMAndyKrMVPUsers MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    Yes. Set use an Option button and set the individual button STYLE = 1 (GRAPHICAL)  then you will get the effect you want
    -- Andy Kramek
  • Sunday, November 08, 2009 1:43 PMDickDay Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    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
  • Sunday, November 08, 2009 3:59 PMCetinBasozMVPUsers MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     Answer
    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
    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.
    • Marked As Answer byDickDay Sunday, November 08, 2009 5:40 PM
    •  
  • Sunday, November 08, 2009 5:41 PMDickDay Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    Thank you! Light bulbs just went off :)

    Yes, that is exactly what I need.  

    Thanks to all!


    Dick Day