skip to main content

Library Routines : WIN$PRINTER : WINPRINT-SET-TEXT-COLOR

WINPRINT-SET-TEXT-COLOR
The WINPRINT-SET-TEXT-COLOR function sets the text foreground color.
Syntax:
 CALL "WIN$PRINTER" USING WINPRINT-SET-TEXT-COLOR 
Parameters:
01  winprint-data.
    03 wprtdata-text-color          pic 9(9comp-5.
Color value is computed as follows: Red + Green * 256 + Blue * 65536. Red, Green and Blue range from 0 to 255.
compute wprtdata-text-color = 192 * 65536 + 192 * 256 + 192
move X#C0C0C0 to wprtdata-text-color
78 wprt-color-black value x#000000.
78 wprt-color-red value x#0000FF.
78 wprt-color-green value x#00FF00.
78 wprt-color-blue value x#FF0000.
78 wprt-color-yellow value x#00FFFF.
78 wprt-color-magenta value x#FF00FF.
78 wprt-color-cyan value x#FFFF00.
78 wprt-color-white value x#FFFFFF.
Return code:
returnCode can be any signed numeric data item and provides additional information:

Copyright (c) 2017 Veryant
Contact us
Please share your comments on this manual or on any
Veryant product documentation with the email button at the top left