ID: Q70730
The information in this article applies to:
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.
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.
"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
Last Reviewed: July 30, 1997