BUG: Scroll Box Flashing Not Updated If Bar Resized w/ Focus

ID: Q73839


The information in this article applies to:
  • Microsoft Visual Basic programming system for Windows, versions 1.0, 2.0, 3.0
  • Microsoft Windows versions 3.0, 3.1


SYMPTOMS

There is a Microsoft Windows version 3.x (3.0 and 3.1) 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 for Windows. This article describes how to work around this problem.


WORKAROUND

You can work around this problem by doing the following:

  1. In step 2 of the More Information section, 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 in the More Information section. You should notice that the problem no longer exists. The flashing has been updated correctly in the same position as the scroll box.



STATUS

Microsoft has confirmed this to be a bug in Microsoft Windows versions 3.0 and 3.1. We are researching this problem and will post new information here in the Microsoft Knowledge Base as it becomes available.


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 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.


Additional query words: buglist3.00 buglist3.10 2.00 3.00 3.10

Keywords :
Version : WINDOWS:1.0,2.0,3.0,3.1
Platform : WINDOWS
Issue type :


Last Reviewed: January 13, 2000
© 2000 Microsoft Corporation. All rights reserved. Terms of Use.