Spaces Can Make Words Wrap Too Soon in Windows Label Control

ID Number: Q74337

1.00

WINDOWS

Summary:

Embedded spaces can cause words to wrap too soon within a label box in

Microsoft Visual Basic programming system version 1.0 for Windows. The

problem is not with Visual Basic, but rather with Windows.

Microsoft has confirmed this to be a problem in Windows version 3.0

(buglist3.00). We are researching this problem and will post new

information here as it becomes available.

More Information:

Steps to Reproduce Problem

--------------------------

1. From the File menu, choose New Project.

2. Draw a label box on the form starting from the left side of

the form.

3. Set the width property of the label to 6975 twips (twips is the

default scale mode).

4. Set the height property of the label to 495 twips.

5. From the Properties list box, choose the Caption property for the

Label1 box. Enter the following caption in the Settings box, typing

10 spaces between digits instead of the ... (ellipses) shown:

1...2...3...4...5...6...7...8...9

As you can see, the 9 is incorrectly placed on the next line of the

label box, even though more than enough room exists to place the

entire caption in one line.

You can correct this problem by changing the width of the label to

7095 twips or more.

Additional reference words: 1.00 3.00