This property sets the pen style.
[TVIkPenStyle Type]
Unit
IkInit
type
TVIkPenStyle = (vikPenNull,
vikPenSolid, vikPenDash, vikPenDot, vikPenDashDot,
vikPenDashDotDot, vikPenInsideFrame);
Property Value
Value | Explanation |
---|---|
vikPenNull | Pen doesn't draw a line. (PS_NULL) |
vikPenSolid | Pen is solid. (PS_SOLID) |
vikPenDash | Pen is dashed. (PS_DASH) |
vikPenDot | Pen is dotted. (PS_DOT) |
vikPenDashDot | Pen has alternating dashes and dots. (PS_DASHDOT) |
vikPenDashDotDot | Pen has alternating dashes and double dots. (PS_DASHDOTDOT) |
vikPenInsideFrame | Pen is solid.* (PS_INSIDEFRAME) |
( ) The explanation contained in the parentheses has the same meaning as the constants used by WindowsAPI
Explanation
The PenStyle property sets the pen style. When drawing figures with methods other than the Line and Rectangle methods, if the PenStyle property is set to values other than vikPenNull, vikPenSolid, or vikPenInsideFrame then the PenWidth property is automatically set to 1.
Setting this value
This value can be set at runtime.
Retrieving this value
This value cannot be retrieved.
Difference from ImageKit7/8/9 ActiveX
In VCL, the constants contain a "v". In ActiveX the constants are: ikPenNull, ikPenSolid, ikPenDash, ikPenDot, ikPenDashDot, ikPenDashDotDot, ikPenInsideFrame.