Microsoft KB Archive/70730

{|
 * width="100%"|

Cannot Select Radio Button with Mouse in User Dialog Box

 * }

Q70730

-

The information in this article applies to:


 * Microsoft Word for Windows, versions 1.0, 1.1, 1.1a, 2.0, 2.0a, 2.0a-CD, 2.0b, 2.0c, 6.0, 6.0a, 6.0c

-

SUMMARY
When using a user dialog box created in Microsoft Word for Windows, you may not be able to select an option button or checkbox if the horizontal position of the button or box is too close to the position of another selection even if it appears there is enough room between selections on the screen.

MORE INFORMATION
To demonstrate, run the following macro:

  a Sub MAIN On Error Goto bye Begin Dialog UserDialog 312, 144 GroupBox 8, 51, 180, 35, &quot;&Display in:&quot; OptionGroup .Where OptionButton 24, 62, 80, 18, &quot;&Header&quot; OptionButton 91, 62, 80, 18, &quot;&Footer&quot; OKButton 232, 49, 64, 21 CancelButton 232, 78, 64, 21

End Dialog Dim Dlg As UserDialog Dialog Dlg Bye: End Sub This macro brings up a dialog box displaying the options header and footer with option buttons next to each. There appears to be enough horizontal space between options; however, pressing the button to select the footer with the mouse does not select the footer option. By changing the horizontal position of the option button for the footer, the problem can be corrected so that the footer option can be selected with the mouse.

To correct this behavior in the above macro, increase the horizontal distance between option buttons as follows:

  OptionButton 24, 62, 80, 18, &quot;&Header&quot; OptionButton 100, 62, 80, 18, &quot;&Footer&quot; The first number in these lines is the horizontal position of the button. By increasing this horizontal position number for the footer option, the distance between the footer selection button and the word &quot;header&quot; is increased in the dialog box and &quot;footer&quot; can now be selected with the mouse.