Here's what I'm calling OptionButtonEx. It has two features that the regular OptionButton doesn't have:
1) There's a GroupNum property that allows grouping of sets of them without the need for creating extra containers (frames, etc). The default is group zero, which will link all new option buttons together, but you can create as many groups (sets of option buttons) as you like.
2) There is a CaptionUnicode property. This property is available only at runtime, but it allows the setting (and getting) of a Unicode caption (using a standard VB6 string). This isn't available at design time because it would make this control too heavy (requiring a RichTextBox). I've previously posted a Unicode Option Button which is Unicode editable at design time for those who want that functionality.
This control is almost as lightweight as the regular option button, and has these two new features.
Enjoy.
OptionButtonEx.zip
1) There's a GroupNum property that allows grouping of sets of them without the need for creating extra containers (frames, etc). The default is group zero, which will link all new option buttons together, but you can create as many groups (sets of option buttons) as you like.
2) There is a CaptionUnicode property. This property is available only at runtime, but it allows the setting (and getting) of a Unicode caption (using a standard VB6 string). This isn't available at design time because it would make this control too heavy (requiring a RichTextBox). I've previously posted a Unicode Option Button which is Unicode editable at design time for those who want that functionality.
This control is almost as lightweight as the regular option button, and has these two new features.
Enjoy.
OptionButtonEx.zip