41
- 95 -
The height of the rectangle
tnLineWidth
The line width in points. 0 represents hairline. Optional, default value = 1.
tnFill
0 ... not filled, 1 ... filled. Optional, default value = 0
tnPenPattern
The border line pattern:
0 ... no border
1 ... dotted
2 ... dashed
3 ... dash-dot
4 ... dash-dot-dot
8 … solid line
Optional, default value = 8.
tnRoundFactor
The radius of the rectangle edges curvature. 0 makes the rectangle right-
angled (no rounding), 99 creates an ellipse. Optional, default value = 0.
Note: the border and fill color needs to be defined via SetColor() method
before calling DrawRectangle() method.
DrawText
Draws a text, using a font defined by SetFont method.
Syntax:
XFRXDraw::DrawText(tnLeft, tnTop, tcText[, tnRotate[,
tcLinkName[, tcLinkRef[, tcBookmark[, tcTooltip]]]]])
Or
XFRXDraw::DrawText(tcText[, tnRotate[, tcLinkName[,
tcLinkRef[, tcBookmark[, tcTooltip]]]]])
Parameters:
tnLeft, tnTop
The coordinates where the text will be drawn. If the second syntax is used
(without the coordinates), the text will be drawn at the current position:
which is either a position defined by SetPos() method or a the end of an
output if the previous DrawText() method call.
tcText
The text to be drawn
tnRotate
The text rotation angle in degrees. The label will be rotated
counterclockwise. Optional, default value = 0.
tcLinkName
If this parameter is filled, the text will be a named target of a hyperlink.