PWscrsize : GETTING THE POSSIBLE SIZE OF THE WINDOW
As was explained in the PWoutln keyword,
sometimes you must set the outline of window#0. It is then a good idea to
know to what size the outline can be set, since the user's screen size may
be different from yours. The PWscrsize command will tell you what the
maximum screen size for a window can be.
PWscrsize [#chan],x_size%,y_size%,x_orig%,y_orig%
- #chan is the channel ID. Normally this would be channel #0. You can leave
this parameter out, it will then default to channel #0.
- x_size% and y_size% are the maximum x and y sizes your window can extend
to. Normally, if this is done for window#0, i.e. the first window for a
job, this should be as large as the screen itself. For all other windows
opened for the same job, this should be the x and y sizes of window#0.
- x_orig% and y_orig% are the x and y origins of the window.
Please note that the parameters passed MUST be integers, and must be
variables.
Example
The following example sets the outline of channel#0 so that it covers the
whole screen, but leaves enough space at the top for two rows of buttons.
To do this, it first gets the maximum size of window #0:
xs%=0:ys%=0:xo%=0yo%=0
PWscrsize#0, xs%,ys%,xo%,yo%
PWoutln #0,xs%,ys%-28,xo%,yo%+28
PROGS, Professional & Graphical Software
last edited 1996 Aug 06 (wl)