PWscrsize : GETTING THE POSSIBLE SIZE OF THE WINDOW

Purpose

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.

Syntax

PWscrsize [#chan],x_size%,y_size%,x_orig%,y_orig%

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)