_RMARGIN

CurrentX, CurrentY

A number of form methods draw right on the form. These two properties track the position of the drawing pen.

Usage

frmForm.CurrentX = nXPosition nXPosition = frmForm.CurrentX frmForm.CurrentY = nYPosition nYPosition = frmForm.CurrentY
Several of the drawing methods use CurrentX and CurrentY as defaults if you omit position parameters. All the drawing methods change the value of CurrentX and CurrentY. Like all drawing routines, units are expressed based on the current ScaleMode setting.

Example

? _SCREEN.CurrentX, _SCREEN.CurrentY _SCREEN.Box(100, 100, 200, 250) ? _SCREEN.CurrentX, _SCREEN.CurrentY _SCREEN.CLS ? _SCREEN.CurrentX, _SCREEN.CurrentY _SCREEN.DrawWidth = 10 _SCREEN.PSet() ? _SCREEN.CurrentX, _SCREEN.CurrentY

See Also

Box, Circle, Cls, Line Method, Print, PSet, ScaleMode


View Updates

Copyright © 2002 by Tamar E. Granor, Ted Roche, Doug Hennig, and Della Martin. All Rights Reserved.



Hacker's Guide to Visual FoxPro 7. 0
Hackers Guide to Visual FoxPro 7.0
ISBN: 1930919220
EAN: 2147483647
Year: 2001
Pages: 899

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net