Microsoft KB Archive/67105

Maximum and Minimum Values for WinWord Custom Dialog Boxes PSS ID Number: Q67105 Article last modified on 07-14-1994

1.00 1.10 2.00

WINDOWS

Summary:

The following table summarizes the maximum and minimum values allowed in creating a custom Microsoft Word for Windows dialog box:

Dialog Box Minimum Maximum ———- ——- ——-

Dialog box x position 0 510 Dialog box y position 0 383 Dialog box width (dx) 1 510 Dialog box height (dy) 1 383

The x and y positions automatically adjust if there is not sufficient room to display the dialog box at that position.

The minimum x and y values allowed for dialog box items, such as the OK button, is zero. The minimum value for the height and width of dialog box items is one. You measure the position of a dialog box item relative to the upper left-hand corner of the dialog box. Maximum values for the position and dimension of dialog box items depend on the size of the dialog box itself. Dialog box items must fit completely inside the dialog box.

Assigning an illegal value in the creation of a dialog box results in the following error message:

Microsoft has confirmed this to be a problem in Word for Windows versions 1.0, 1.1, and 1.1a. This problem was corrected in Word for Windows version 2.0.

Reference(s):

“Microsoft Word for Windows and OS/2 Technical Reference” pages 76-95

Additional reference words: w4wother winword limitation 1.00 1.10 1.10a 2.0 2.00 noupd

=
================================================================

Copyright Microsoft Corporation 1994.