PSSetPWColors()

Syntax

Function PSSetPWColors(nBackground, nPaper, nShadow, nToolbar)
TPageScript:SetPWColors(nBackground, nPaper, nShadow, nToolbar)

Returns

NIL

Description

Use PSSetPWColors() to set the print preview window colors to match your own application colors and style. You can control the color for the following elements :

You may call this only once at program start, but after PSInit() or at anytime before starting a new print job.

If you want to set only some but not all of the colors, pass APS_DEFAULT to the color you don't want to set.

In the following example, only the background of the Print Preview Window is set. Other colors aren't changed.

PSSetPWColorsRGB(165, 187, 205), APS_DEFAULT, APS_DEFAULT, APS_DEFAULT)

Arguments

nBackground Background color of the print preview window. Pass APS_DEFAULT if you don't want to change this color.
nPaper The paper color. Pass APS_DEFAULT if you don't want to change this color.
nShadow Shadow color (to the right and bottom of the paper). Pass APS_DEFAULT if you don't want to change this color.
nToolbar Tool bar color. Pass APS_DEFAULT if you don't want to change this color.

See also

PSSetPWBounds()
PSSetPWPosition()
PSSetPWSize()
PSSetPWState()
PSSetPWZoomLevel()