setposition_set_initial_preview_window_coordinates_.htm
Navigation: ABC Library Reference > PrintPreviewClass > PrintPreviewClass Methods >====== SetPosition (set initial preview window coordinates) ====== | |
SetPosition( [x] [,y] [,width] [,height] )
SetPosition | Sets the initial position and size of the print preview window. |
x | An integer constant, variable, EQUATE, or expression containing the initial horizontal position of the print preview window. If omitted, the print preview window opens to the default Windows position. |
y | An integer constant, variable, EQUATE, or expression containing the initial vertical position of the print preview window. If omitted, the print preview window opens to the default Windows position. |
width | An integer constant, variable, EQUATE, or expression containing the initial width of the print preview window. If omitted, the print preview window opens to its default width. |
height | An integer constant, variable, EQUATE, or expression containing the initial height of the print preview window. If omitted, the print preview window opens to its default height. |
The SetPosition method sets the initial position and size of the print preview window.
Implementation:
The SetPosition method sets the WindowPosSet and WindowSizeSet properties.
The Display method definition determines the default width and height of the print preview window.
Example:
PrtPrev.SetPosition(1,1,300,250) !set initial position and size
PrtPrev.SetPosition(1,1) !set initial position only
PrtPrev.SetPosition(,,300,250) !set initial size only
See Also: WindowPosSet, WindowSizeSet
setposition_set_initial_preview_window_coordinates_.htm.txt · Last modified: 2021/04/15 15:57 by 127.0.0.1