>  Docs Center  >  Libraries  >  JHU/APL/S1R  >  SWINDOW

SWINDOW

SWINDOW

Name


      SWINDOW

Purpose


      Create a scrolling window. Works much like window.

Category


Calling Sequence


      swindow

Inputs


Keyword Parameters


Keywords


        INDEX=ind Returned window index, base number, and
          sw index, and draw widget ID:
          ind = [indx, base, sw_ind, drw]. Use indx in wset, base
          is not be needed directly, sw_ind is used in swdelete.
          May use drw to set window lower left corner to ix,iy:
            widget_control,drw,set_draw_view=[ix,iy]
        COLORS=c Set number of colors to use in windows.
          Must be given for the first window created.
        XSIZE=xs Set total window X size in pixels.
        YSIZE=ys Set total window Y size in pixels.
          Defaults = 500 x 400.
        X_SCROLL_SIZE=xsc Set visible window X size in pixels.
        Y_SCROLL_SIZE=ysc Set visible window Y size in pixels.
          Defaults = total window size up to 2/3 screen size.
        /RESIZE Allow window resize.
          Can also set RESIZE to the name of a redradr routine:
            RESIZE=rout, which must take the keyword /REDRAW to
            redraw the window after a resize.
        GET_SCROLL=scr returns [xscr,yscr], scroll sizes that would
          be used. No window is made with this option.
        TITLE=txt Set optional window title.
        VIEW=[ix0,iy0] Set viewport into total scrolling window
          by giving window pixel to show at lower left corner. IF
          VIEW not given the viewport is at upper left of window.
        /QUIET means do not list window number when created.
        RETAIN=r Set backing store type (def=2, see manual).
        /PIXMAP means use pixmap instead of screen window. If
          given then an ordinary window is used.
        GROUP_LEADER=grp Assign a group leader to this
          widget. When the widget with ID group is destroyed
          this widget is also.
        XOFFSET=xoff, YOFFSET=yoff Window position on screen.
          Pixels from screen upper left corner.

Outputs


Common Blocks


      swindow_com

Notes


      Notes: A draw widget is used to make a scrolling window.
        Differences between windows and draw widgets prevent
        exact emulation of the window command.
        See also swdelete, and swlist.
        Can use the arrow keys to move a scrolling window
        around. Shift moves faster, Control slower.

Modification History


      R. Sterner, 14 Jun, 1993
      R. Sterner, 29 Sep, 1993
      R. Sterner, 30 Dec, 1993 --- added /QUIET.
      R. Sterner, 1995 Dec 20 --- removed window size extension.
      R. Sterner, 1997 Sep 24 --- Handled Win95 Y scroll bug.
      R. Sterner, 2002 Jan 21 --- Added VIEW=vw.
      R. Sterner, 2002 Aug 14 --- Added draw widget ID to INDEX.
      R. Sterner, 2002 Aug 14 --- Dropped old unneeded code, save draw wid.
      R. Sterner, 2002 Sep 22 --- Added XOFFSET, YOFFSET.
      R. Sterner, 2003 Mar 17 --- If no scrolling needed, none used.
      R. Sterner, 2003 Mar 17 --- Added GROUP_LEADER.
      R. Sterner, 2003 Apr 02 --- Fixed window scroll sizes. Added GET_SCROLL.
      R. Sterner, 2008 May 02 --- Added /resize keyword.
      R. Sterner, 2008 Jun 20 --- Added /RESIZE to help text.
      R. Sterner, 2008 Jun 20 --- Added Arrow key viewport moving.
      R. Sterner, 2010 May 04 --- Converted arrays from () to [].
  Copyright (C) 1993, Johns Hopkins University/Applied Physics Laboratory
  This software may be used, copied, or redistributed as long as it is not
  sold and this copyright notice is reproduced on each copy made. This
  routine is provided as is without any express or implied warranties
  whatsoever. Other limitations apply as described in the file disclaimer.txt.



© 2019 Harris Geospatial Solutions, Inc. |  Legal
My Account    |    Store    |    Contact Us