Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »

SetColor()  


Sets the foreground and background drawing colors.

Syntax:

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()  


Sets font name and attributes for subsequent DrawText() or DrawTextBox() calls.

Syntax:

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:

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:

XFRXDraw::SetUnit(tcUnit)

Parameters:

tcUnit
  The unit code. The allowed values are: “in” – inches, “cm” – centimeters, “pt” – points and “px” – pixels.


The default unit is point.


  • No labels