CLEAR CLASSLIB

Margin

This property of all the text-based controls lets you specify a margin that's left empty around the inside of the input area.

Usage

oObject.Margin = nMarginInPixels nMarginInPixels = oObject.Margin
Note that the margin is measured in pixels regardless of the form's ScaleMode. Not so unreasonable, since we can't imagine wanting a margin large enough to measure in foxels.

The margin goes around all four sides of the input area. It's the part that doesn't get highlighted when you select all the text in the control.

Be careful not to make the margin too big. The control's contents disappear with no warning if the margin covers the entire area. (Keep in mind that you're actually getting twice as many pixels as you specify in each dimension, since the margin applies at both top and bottom and both right and left.)

Example

MyForm.edtNotes.Margin = 4

See Also

BorderWidth, ComboBox, EditBox, ScaleMode, Spinner, TextBox


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