Option buttons and group boxes
Option buttons allow the user to choose one option from several options. Typically, you use a group box to surround a group of option buttons, but you can also use a group box to set off a group of check boxes or any related group of controls.
Example:
Sub Main
   Begin Dialog GroupSample 31,32,185,96,"Option Button and Check Box"
       OKButton 28,68,40,14
           CancelButton 120,68,40,14
       GroupBox 12,12,72,48,"GroupBox",.GroupBox1
       GroupBox 100,12,72,48,"GroupBox",.GroupBox2
       OptionGroup .OptionGroup1
       OptionButton 16,24,54,8,"OptionButton",.OptionButton1
       OptionButton 16,40,54,8,"OptionButton",.OptionButton2
       CheckBox 108,24,45,8,"CheckBox",.CheckBox1
       CheckBox 108,40,45,8,"CheckBox",.CheckBox2
   End Dialog
       Dim Dlg1 As GroupSample
       Button = Dialog (Dlg1)
End Sub
The above code produces the following dialog:
Figure 5: Option button and check box example
Image