Returns or sets the appearance of output for the graphics methods.
Object.DrawStyle [ = enFormDrawStyle ]
The DrawStyle property syntax has the following parts:
Name |
Type |
Description |
Object |
AForm |
AForm object |
enFormDrawStyle |
enumAFormDrawStyle |
An integer specifying the appearance of output for the graphics methods. |
Name |
Value |
Description |
aformDrawStyleSolid |
0 |
Solid |
aformDrawStyleDash |
1 |
Dash |
aformDrawStyleDot |
2 |
Dot |
aformDrawStyleDashDot |
3 |
Dash Dot |
aformDrawStyleDashDotDot |
4 |
Dash Dot Dot |
aformDrawStyleInvisible |
5 |
Invisible |
aformDrawStyleInsideSolid |
6 |
InsideSolid |
The effect displayed for the DrawStyle property is affected by the DrawWidth property. If DrawWidth is set to a value greater than 1, DrawStyle settings 1 through 4 produce a solid line (the DrawStyle property value isn't changed). If DrawWidth is set to 1, DrawStyle produces the effect described in the preceding table.
The DrawStyle will change lines drawn by the Line, Circle and Rectangle methods.
The property is not applicable for MDI Form type since drawing functions are not supported for MDI Forms.
The following statement draws a horizontal red dash and dot line across the form 20 pixels from the top:
DrawStyle=aformDrawStyleDashDot
DrawWidth=1
Line(10, 20, ScaleWidth-10, 20, aclrRed)