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

Last reviewed: June 21, 1995
Article ID: Q73839
The information in this article applies to:
  • Microsoft Visual Basic programming system for Windows, versions 1.0, 2.0, and 3.0
  • Microsoft Windows, versions 3.0 and 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 reference words: buglist3.00 buglist3.10 1.00 2.00 3.00 3.10
KBCategory: kbprg kbbuglist
KBSubcategory: PrgCtrlsStd


THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.

Last reviewed: June 21, 1995
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.