Cannot Select Radio Button with Mouse in User Dialog Box

ID: 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, "&Display in:"
           OptionGroup .Where
           OptionButton 24, 62, 80, 18, "&Header"
           OptionButton 91, 62, 80, 18, "&Footer"
           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, "&Header"
   OptionButton 100, 62, 80, 18, "&Footer" 
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 "header" is increased in the dialog box and "footer" can now be selected with the mouse.


REFERENCES

"Microsoft Word for Windows and OS/2 Technical Reference," pages 87-88, 232-233.

Additional query words: 1.0 1.10a 1.1 2.0 word6 winword winword2 6.0

Keywords :
Version : WINDOWS:1.0,1.1,1.1a,2.0,2.0a,2.0a-CD,2.0b,2.0c,6.0,6.0a,6.0c
Platform : WINDOWS
Issue type :


Last Reviewed: December 22, 1999
© 2000 Microsoft Corporation. All rights reserved. Terms of Use.