BUG: Changing ScaleMode in Form Class Moves Objects in VFP 5.0

Last reviewed: April 25, 1997
Article ID: Q155932
The information in this article applies to:
  • Microsoft Visual FoxPro for Windows, versions 5.0, 5.0a

SYMPTOMS

In Visual FoxPro 5.0, if you are creating a form with some objects based on a form class that has the ScaleMode property set to 0-Foxel, and you change the ScaleMode property to 3-Pixel in the form class, the existing objects in the subclassed form are placed in the wrong location. All the objects in the subclassed form are placed on top of each other towards the top left of the form.

WORKAROUND

Set the form class ScaleMode property to 0-Foxels, re-open the subclassed form, and set the subclassed form's ScaleMode property to 3-Pixels. Save the subclassed form. Now, go back to the form class and change the ScaleMode property of the form class to 3-Pixels.

STATUS

Microsoft has confirmed this to be a problem in the Microsoft products listed at the beginning of this article. 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 Behavior

  1. Create a form class, and name it Myform.

  2. Change the ScaleMode property of the Myform form to 0-Foxels.

  3. Save the Myform form class, and close the Class Designer.

  4. Create a form as Form1 based on the Myform form class.

  5. Add a text box to the Form1 form.

  6. Save the form, and close the Form Designer.

  7. Modify the Myform form class again in the Class Designer, and change the ScaleMode property to 3-Pixels.

  8. Modify the Form1 form.

Note: The text box is positioned incorrectly.


KBCategory: kbusage kbbuglist
KBSubcategory: FxprgClassoop vfoxwinbuglist5.00
Additional reference words: 5.00
Keywords : buglist5.00 FxprgClassoop vfoxwin vfpbug5.0a kbusage kbbuglist
Version : 5.0 5.0a
Platform : WINDOWS
Issue type : kbbug


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: April 25, 1997
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.