Win32Prn() > Print output methods |
Defines text color and alignment.
:setColor( <nClrText>, [<nClrPane>], [<nAlign>} ) --> NIL
Values for text alignment
Value | Description |
---|---|
0 *) | Text is printed left aligned to the current print position |
1 | Text is printed right aligned to the current print position |
2 | Text is printed centered on the current print position |
*) default |
Two constants for horizontal and vertical alignment can be added to define horizontal and vertical text alignment with one parameter.
Method :setColor() defines foreground and background color plus alignment for printing text strings. The color values must be defined as numeric RGB colors. The defined colors and text alignment are used for text printing methods like :textOut() or :textOutAt().
The return value of :setColor() is always NIL.
http://www.xHarbour.com