...
SetColor()
Sets
...
Syntax:
Code Block |
---|
XFRXDraw::SetColor(tfr, tfg, tfb[, tbr, tbg, tbb]) |
Parameters:
tfr, tfg, tfb
Red, green and blue components of the foreground color
tbr, tbg, tbb
Red, green and blue components of the background color (optional)
...
SetFont()
...
font name and attributes for subsequent DrawText() or DrawTextBox() calls.
Syntax:
Code Block |
---|
XFRXDraw::SetFont(tcFontName, tnSize[, tlBold[,
tlItalic[, tlUnderline[,
tlStrikeThrough]]]]) |
Parameters:
tcFontName
The font name
tnSize
The font size in points
tlBold, tlItalics, tlUnderline, tlStrikeThrough
The font attributes. These parameters are optional, the default value is .F. Parameter tlStrikeThrough is since XFRX 15.7
...
SetPos()
Sets the position where the text will be drawn by the subsequent DrawText() method call.
Syntax:
Code Block |
---|
XFRXDraw::SetPos(tnXPos, tnYPos) |
Parameters:
tnXPos, tnYPos
The X and Y (horizontal and vertical) coordinates of the position. The unit of the coordinates is defined by SetUnit() method, the default unit is Point (pt).
...
SetUnit()
Sets the drawing units.
Syntax:
Code Block |
---|
XFRXDraw::SetUnit(tcUnit) |
Parameters:
tcUnit
The unit code. The allowed values are: “in” – inches, “cm” – centimeters, “pt” – points and “px” – pixels.
...