Pixel Replaces Foxel as Default Scale Value in Design ModeID: Q129208 3.00 WINDOWS The information in this article applies to:
SUMMARYIn earlier releases of FoxPro, the default scale value has been the Foxel. The definition of a foxel is:
Beginning with Visual FoxPro, the default value for the Form and Class
designer is the pixel. As documented in the online Help file, the
definition of a pixel is:
MORE INFORMATIONThe ramifications for this can be significant. When designing a new class or form, the default measurement unit is now the pixel. Because a pixel is significantly smaller than a foxel, screens and all objects placed on them will likely be mis-aligned unless the correct measurement unit is chosen. The Scalemode property can be found on the Form Layout properties tab or it can be accessed by code in a program. Visual FoxPro supports two entries for this property:
In general, you should design forms and classes using the foxel measurement
when your application is intended to be used across platforms or when the
font metrics are likely to change (small to large fonts, for example). To
ensure that you are using the correct measurement, you will need to set it
explicitly. The following code demonstrates how to do it:
With this definition, the button should appear in the lower third of the
form. If you change the scalemode to 3, the button will be moved to the
upper left corner of the screen. Again, if scalemode is not set to 0, this
will have the same effect as explicitly setting the scalemode to 3.
Alternatively, in a form, you can set this by going to the Form Layout properties tab and choosing the appropriate value. KBCategory: KBSubcategory: FxprgGeneral VfoxWin Additional reference words: 3.00 foxels pixels xplatform crossplat
|
Last Reviewed: May 23, 1998 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |