PSSetPWBounds() |
|
Syntax
Function PSSetPWBounds(nLeft, nTop, nWidth, nHeight)
TPageScript:SetPWBounds(nLeft, nTop, nWidth, nHeight)
Returns
NIL
Description
Call PSSetPWBounds() to set the print preview window position and size at the same time. 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 the position or the size of the print preview window, you may call PSSetPWPosition() or PSSetPWSize(). Passing a negative value to nWidth will center the window horizontally. Passing a negative value to nHeight will center the window vertically.
Arguments
nLeft | Left position of the window expressed in pixels. |
nTop | Top position of the window expressed in pixels. |
nWidth | Width of the window expressed in pixels. If set to -1, PageScript tries to center it on the screen. |
nHeight | Height of the window expressed in pixels. If set to -1, PageScript tries to center it on the screen. The Windows Taskbar height is taken into account. |
See also
PSSetPWColors()
PSSetPWPosition()
PSSetPWSize()
PSSetPWState()
PSSetPWZoomLevel()