Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Option button properties
Message
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
00363733
Message ID:
00363813
Views:
17
>>I set certain option button properties in the .Init of my option group base class. That's because I can't visually add option buttons from my own class to an option group class. Is that what people usually do, or do they subclass an option button in code and AddObject that class to their option groups in the option group .Init?
>
>I personally use only default option buttons, but that's me...

I'll tell you what I'm doing. I realized that option buttons that have no caption have no visual cue when they get focus (same for check boxes). Also, the option group as a whole has no visual cue. I'm checking their captions, and replacing the empty ones with " ", and then setting the .Backstyle to 0 - Transparent (which is not the default) so there won't be a smudge under the seemingly empty label. The visual cue is a little odd - a sort of rectangle next to the button, but it's not bad. Sometimes labels work better than a control's own caption, and then I need things like this.

If I need any other changes to default option button properties, I'll add them here. Mike's idea of adding a method is a good one, too.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform