Logo

Hacker’s Guide to Visual FoxPro
An irreverent look at how Visual FoxPro really works. Tells you the inside scoop on every command, function, property, event and method of Visual FoxPro.

Curvature

A property of a shape that describes how rounded its corners are, from square to circle.

Usage

shpShape.Curvature = nCurves
nCurves = shpShape.Curvature

Parameter

Value

Meaning

nCurves

0

No curvature; right-angle corners form a square or rectangle.

1 through 98

Increasing curvature, forming ovals.

99

Ultimate curvature, forming a circle or ellipse.

Curvature can be used to dynamically change the shape of the object as conditions change. We haven’t found a lot of use for this in our data-based applications, but it can be used for great special effects.

Example

frmForm1.shpShape1.Curvature = 99   && draws a circle,
                                    && if height=width

See Also

FillColor, FillStyle, Height, Shape, Width