>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?
I have a group of option groups used to select from multiple related reports and send them to preview, print, etc. They are arranged like rows and columns. I use labels above the columns and to the left of the rows. Labels can also be handy if they make formatting easier. I use some long labels next to some check boxes because check box captions don't word wrap. I could probably have inserted a carriage return in the caption, but a label seemed easier. There may be any number of cases where a caption COULD be used, but I wanted, in principle, to ensure that all my option buttons and check boxes could be seen to get focus whether I deliberately included a caption in each instance or not.
Previous
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only