PREVIOUS HEAD

17  Initial Window Sizing

(First implemented in 4.0J.) Previous versions always opened the previewer as a full-screen (maximized) window. A new command-line option, -d x y w h, lets you specify the initial size of the TRUETEX previewer window. The coordinates (x,y ) specify the screen coordinates of the upper-left corner of the window, and w and h specify the width and height respectively in pixels. If x or y is negative, the initial window will be maximized and the restore-size of the window will be set from (w,h ) anchored at the Windows default position. If either w or h is negative, the width and/or height of the window will be extended to the respective edge of the screen. For example, ``-d -1 -1 -1 -1'' starts a maximized window, ``-d 100 100 500 500'' a 500 × 500 window anchored at screen coordinates (100,100). and ``-d 100 100 -1 -1'' a window anchored at (100,100) and extending to the right and bottom edges of the screen.

To start a minimized (iconic) window, check the Run Minimized option in the Program Item Properties dialog of the Program Manager, or set the appropriate value in nCmdShow in the WinExec call.


NEXT HEAD