The information in this article applies to:
SYMPTOMSIf you create a form with the ScrollBars property set to three, when you resize the form the vertical and horizontal scrollbars may alternately appear and disappear. Also, when you attempt to scroll the form after resizing it, the edge of the form that repaints during the scrolling may display a ghosted image with some of the form's controls. RESOLUTION
As a workaround, you can call the form's Draw method from within the Resize
and Scrolled event procedures.
Place the following code in the form's Scrolled procedure: Please see the MORE INFORMATION section of this document for details. STATUSMicrosoft has confirmed this to be a bug in the Microsoft products listed at the beginning of this article. MORE INFORMATIONYou can create a scrollable form in Visual FoxPro 6.0 by setting the form's ScrollBars property to a value of one, two, or three. Scrollbars appear on the form whenever the form is sized such that any of the form's controls are not fully visible. Steps to Reproduce BehaviorAlternate Appearance and Disappearance of Scrollbars
Incorrect Repaint When Scrolling Form After Resize
Demonstration of WorkaroundRemove the (*) asterisk character before the This.Draw() code in the Resize and Scrolled procedures in the preceding program example. Repeat the steps in both scenarios to show that the behaviors described in the SYMPTOMS section no longer occur.REFERENCES(c) Microsoft Corporation 1998. All Rights Reserved. Contributions by Jim Saunders, Microsoft Corporation. Additional query words: kbVFp600bug kbOOP kbContainer kbCtrl kbvfp600
Keywords : |
Last Reviewed: August 3, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |