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:
00363960
Views:
21
Bret,

>>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.

I do the same as Nick. My cOptionGroup class has an Init() method:

* propogate container BackStyle to option buttons

with this
.SetAll( "BackStyle", .BackStyle )

if ( ! .Enabled ) && 11-Oct-98 handle disabled initial state
.Enable( .Enabled )
endif
endwith


Can I ask why you have no caption option buttons?
df (was a 10 time MVP)

df FoxPro website
FoxPro Wiki site online, editable knowledgebase
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform