Shape
No, this isn't fitness advice. It's a full-fledged control that displays rectangles, circles and shapes in between and lets them react when acted upon. Shapes can give regions of your interfaces "hotspots," like the invisible buttons of FoxPro 2.x but with the fine control of a Visual FoxPro object.
Property |
Value |
Purpose |
Numeric |
Determines whether you can see through the shape. |
|
Numeric |
The color of the shape's border. |
|
Numeric |
Specifies the type of border used for the shape. Options include dotted, dashed and so forth. Ignored unless BorderWidth is 1. |
|
Numeric |
The width in pixels of the shape's border. |
|
Numeric |
Determines the actual shape of the object. Set it to 0 for a rectangle, 99 for a circle or anything in between for various rounded rectangles. |
|
Numeric |
Determines how the shape's colors interact with the colors of the objects beneath it. |
|
Numeric |
The color of the shape's interior. |
|
Numeric |
The type of pattern used for the interior of the shape. Various types of lines and "hatching" are available. |
Example |
* Here's the red circle that's used in so many examples of OOP. * It responds when clicked. DEFINE CLASS RedCircle AS Shape Curvature = 90 BorderColor = RGB(255,0,0) FillColor = RGB(255,0,0) FillStyle = 0 PROCEDURE Click WAIT WINDOW "Who's that knocking on my door?" ENDPROC ENDDEFINE |
See Also |
BackStyle, BorderColor, BorderStyle, BorderWidth, Box, Circle, Curvature, DrawMode, FillColor, FillStyle, Line, Line Method, MouseEnter, MouseLeave |