PageScript 32 - User guide for [x]Harbour and Xbase++ - Version 3.0.3

Print Preview Window

The Print Preview Window

Function reference

PSAbort()

PSAsciiToAnsi()

PSBarCode()

PSBeginDoc()

PSBeginDocEx()

PSBeginEmuDoc()

PSBeginRawDoc()

PSBitmap()

PSEllipse()

PSEllipseEx()

PSEndDoc()

PSEndEmuDoc()

PSEndRawDoc()

PSFrame()

PSFrameEx()

PSGetAsciiToAnsi()

PSGetBin()

PSGetBorderColor()

PSGetBorderThickness()

PSGetCaps()

PSGetCoorSystem()

PSGetCopies()

PSGetCPI()

PSGetDecimalSep()

PSGetDefPrinter()

PSGetDefaultPrinter()

PSGetDuplex()

PSGetFillColor()

PSGetFillPattern()

PSGetFonts()

PSGetFontAngle()

PSGetFontBColor()

PSGetFontCount()

PSGetFontFColor()

PSGetFontJustify()

PSGetFontName()

PSGetFontNames()

PSGetFontSize()

PSGetFontStyle()

PSGetJustify()

PSGetLPI()

PSGetMaxHeight()

PSGetMaxWidth()

PSGetOrientation()

PSGetPageSize()

PSGetPaperBin()

PSGetPaperBins()

PSGetPaperBinCount()

PSGetPaperBinNames()

PSGetPaperBinNumbers()

PSGetPaperCount()

PSGetPaperNames()

PSGetPaperNumbers()

PSGetPrinter()

PSGetPrinters()

PSGetPrinterCaps()

PSGetPrinterCapsEx()

PSGetPrinterCount()

PSGetPrinterHandle()

PSGetPrinterNames()

PSGetTextHeight()

PSGetTextWidth()

PSGetTitle()

PSGetUnit()

PSGetUseDIB()

PSGetVersion()

PSGetXerox()

PSInit()

PSIsPreviewVisible()

PSLine()

PSLineEx()

PSNewPage()

PSPrintDialog()

PSPrintFile()/PSPrintEmuFile()

PSPrintRawFile()

PSSetAsciiToAnsi()

PSSetBin()

PSSetBorder()

PSSetBorderColor()

PSSetBorderThickness()

PSSetClipperComp()

PSSetCoorSystem()

PSSetCopies()

PSSetCPI()

PSSetDecimalSep()

PSSetDevice()

PSSetDirectPrint()

PSSetDuplex()

PSSetFileName()

PSSetFill()

PSSetFillColor()

PSSetFillPattern()

PSSetFont()

PSSetFontAttributes()

PSSetFontAngle()

PSSetFontBColor()

PSSetFontFColor()

PSSetFontName()

PSSetFontSize()

PSSetFontStyle()

PSSetJustify()

PSSetLPI()

PSSetOrientation()

PSSetPageSize()

PSSetPaperBin()

PSSetPDFOwnerPassword()

PSSetPrinter()

PSSetPWBounds()

PSSetPWColors()

PSSetPWPosition()

PSSetPWSize()

PSSetPWState()

PSSetPWZoomLevel()

PSSetRowCol()

PSSetTitle()

PSSetUnit()

PSSetUseDIB()

PSSetXerox()

PSTextBox()

PSTextBoxEx()

PSTextOut()

PSTextOutEx()

PSVersion()

PSWaterMark()

RGB()

Obsolete or unsupported

These functions are either unsupported or became obsolete in this version of PageScript 32 for xbase like programming languages.

PSPrnChanged()

PSRefreshPrinters()

PSSendMail()

PSSetPrintPreview()

PSSetTimeSlice()

PSShowIcon()

PSShutDown()

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 :

  • Background color of the print preview window;
  • Paper color;
  • Shadow color (to the right and bottom of the paper);
  • Tool bar color.

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.

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