Routines For Setting Up Windows.


Some devices are basically window oriented - like sunview and X11. You can give vogle some information on the window that it will use with these routines. These can make your code very device independent. Both routines take arguments which are in device space. (0, 0) is the top left hand corner in device space. To have any effect these routines must be called before vinit. For the X11 device, an entry may be made in your .Xdefaults file of the form

         vogl.Geometry  =150x500+550+50

(where you specify your geometry as you please).


prefposition(x, y)

Specify the preferred position of the window opened by the *next* vinit.

    Fortran:
         subroutine prefposition(x, y)
         integer x, y

    C:
         prefposition(x, y)
              int  x, y;

    Pascal:
         procedure PrefPosition(x, y: integer)

prefsize(width, height)

Specify the preferred width and height of the window opened by the *next* vinit.

    Fortran:
         subroutine prefsize(width, height)
         integer width, height

    C:
         prefsize(width, height)
              int  width, height;

    Pascal:
         procedure PrefSize(width, height: integer)