next up previous contents index
Next: DESTROY Up: CREATE Previous: CREATE PENLUT   Contents   Index


CREATE WINDOW

        CREATE  WINDOW  [BLACK|WHITE]  [NAME  Name]  [/GEOMETRY Sizex[Unitx]
    Sizey[Unity]] [/POSITION Posx[Unitx] Posy[Unity]]

    Create a new window seeing the content of the  current  directory,  with
    the corresponding attributes of background colour and Name. This command
    is only available under X.

    The window geometry is set:
    - if the option /GEOMETRY is present, to the values given  to  this  op-
      tion,  recognized  units  being 'p' for pixels, '%' for percent of the
      screen size, and 'r' for a fraction (aspect ratio) of the  other  size
      (units default is 'p' if omitted),
    - else,  to  the  values  read in the SIC logical named WINDOW_GEOMETRY,
      with the same syntax used for the option /GEOMETRY, if this SIC  logi-
      cal exists,
    - else, to the internal default values.

    The window position on the screen is then ruled:
    - if  the  option  /POSITION is present, by the values given to this op-
      tion, recognized units being 'p' for pixels or '%' for percent of  the
      screen size (units default is 'p' if omitted),
    - else, by the choice of the window manager.

    For example:
        GREG> CREATE WINDOW /GEOMETRY 400 2r
    creates a window of size 400 x 800 pixels, and
        GREG> CREATE WINDOW /POSITION 100% 100p
    creates a window aligned on the right and 100 pixels above the bottom of
    the screen.


Gildas manager 2014-07-01