Cannot Select Radio Button with Mouse in User Dialog Box

Last reviewed: July 30, 1997
Article 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.

Kbcategory: kbusage kbmacro KBSubcategory:


Additional query words: 1.10 1.0 1.10a 1.1 1.0 1.1a 2.0 2.0
word6 winword winword2 6.0 6.0a 6.0c
Version : 1.x 2.x 6.0
Platform : WINDOWS


THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.

Last reviewed: July 30, 1997
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.