Scroll Box Flashing Not Updated if Bar Resized with Focus

ID Number: Q73839

1.00

WINDOWS

Summary:

There is a Microsoft Windows version 3.0 problem updating the flashing

indicator for the scroll box on a vertical scroll bar. This Windows

problem affects vertical scroll bars in Microsoft Visual Basic

programming system version 1.0 for Windows. This article describes how

to work around the problem.

This information applies to Microsoft Visual Basic programming system

version 1.0 for Windows.

More Information:

Steps to Reproduce Problem

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

1. Start Visual Basic and place a vertical scroll bar on a form.

2. Place the following code in the Form_Click event procedure:

Sub Form_Click ()

VScroll1.Height = VScroll1.Height * 2

End Sub

3. From the Run menu, choose Start, or press F5 to run the example.

4. Click and drag the flashing scroll box (on the scroll bar) to

the middle (down from the top).

5. Click on the form to execute the Form_Click procedure, which

doubles the height of the scroll bar. Observe that the scroll box

correctly moved to the middle of the longer scroll bar, but the

flashing indicator failed to also move.

You can work around the problem by doing the following:

1. In step 2 above, add additional code so that the Form_Click

procedure appears as follows:

Sub Form_Click ()

Const True = -1, False = 0

VScroll1.Height = VScroll1.Height * 2

VScroll1.Enabled = False

VScroll1.Enabled = True

End Sub

2. Follow the directions for steps 3, 4, and 5 above. You should

notice that the problem no longer exists. The flashing has

been updated correctly in the same position as the scroll box.

Microsoft has confirmed this to be a problem with Windows 3.0

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

information here as it becomes available.

Additional reference words: 1.00 3.00