BeforeCreateTable

ClipControls

This property controls how Visual FoxPro redraws the form and its contents when controls moving around or appearing and disappearing cause new areas to be exposed, or when Refresh or another event causes Paint to fire—this could happen by changing the size of a control, moving it, or changing the Z-order to move controls around from front to back.

Usage

oObject.ClipControls = lSlowerVideo lSlowerVideo = oObject.ClipControls

Parameter

Value

Meaning

lSlowerVideo

.T.

The form is repainted in a slower, more reliable mode, where all objects are fully repainted. This is the default.

.F.

Screen objects revealed are repainted quickly, redrawing only those portions of the object newly revealed.


In highly unscientific tests here at Hacker Labs, consuming most of an otherwise perfectly fine summer afternoon, we were not able to see any significant difference in the speed of repainting text-based controls, graphics drawn with the graphics methods, graphic controls, or just about anything else we could throw on a form. We suspect that may be due to the blazingly fast hardware we were running on, where everything is just too blindingly fast to matter (NOT!). You ought to do your own testing on your own platforms if object redraw seems too slow.

Example

frmForm.ClipControls = .T.

See Also

Box, Circle, Line Method, Move, Paint, Resize, ZOrder


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