BUG: Changing ScaleMode in Form Class Moves Objects in VFP 5.0 (155932)



The information in this article applies to:

  • Microsoft Visual FoxPro for Windows 5.0
  • Microsoft Visual FoxPro for Windows 5.0a
  • Microsoft Visual FoxPro for Windows 6.0

This article was previously published under Q155932

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.

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.

Modification Type:MajorLast Reviewed:10/16/2002
Keywords:kbBug kbusage KB155932