ScaleMode
This property determines whether a form or toolbar measures things in pixels or in foxels.
Usage |
oObject.ScaleMode = nScaleMode nScaleMode = oObject.ScaleMode |
ScaleMode is part of what Doug refers to as an "obscure" bug. You have to do just the right set of things to trigger this one, but if you do, boom! VFP GPFs. (Hey, a whole sentence with no vowels. Cool!) Here's the setup. If you're working in design mode and an object is selected, and you run a builder that removes the selected object from the form with RemoveObject, changing the form's ScaleMode afterward causes a crash. Weird. Even weirder is that if you omit any of the pieces (like removing a different object), there's no crash. We're not sure exactly how ScaleMode figures into this bug, because you also cause a crash by removing the selected object and clicking into the Property Sheet. In any case, be forewarned. |
Example |
DO CASE CASE ThisForm.ScaleMode = 3 * Using pixels, move one character down. This.Top = This.Top + FONTMETRIC(1) CASE ThisForm.ScaleMode = 0 * Using foxels, move one character down. This.Top= This.Top + 1 ENDIF |
See Also |