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

SWINFO

SWINFO

Name


      SWINFO

Purpose


      Return info for current or specified scrolling window.

Category


Calling Sequence


      out = swinfo([index])

Inputs


      index = optional window index (def=current window). in
        index may be scrolling window index (>100)
        or ordinary window index (<100).
      out = Returned value. -1 means not a valid window.

Keyword Parameters


Keywords


        /INDEX return IDL window index.
        /SWINDEX return scrolling window index.
        /SIZE full window size [sx,sy].
        /VISIBLE size of visible part of window [vx,vy].
        /TITLE swindow title.
        /BASE swindow base widget ID.
        /DRAW swindow draw widget ID.
        /EXISTS Does window exist? 0=no, 1=yes.
        /VIEW=vw 2-elements array with pixel x,y of lower left window corner.
            Can use to find or mark window center:
            plots,/dev,psym=2,col=255,swinfo(/view)+swinfo(/vis)/2

Outputs


Common Blocks


      swindow_com

Notes


      Note: only one keyword is allowed in a call.
        Useful for scrolling a scroll window. Example:
          widget_control,swinfo(101,/draw),set_draw=[50,60]
        See also: swindow, swdelete, swlist.

Modification History


      R. Sterner, 2002 Aug 14
      R. Sterner, 2010 May 04 --- Converted arrays from () to [].
  Copyright (C) 2002, 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.



© 2024 NV5 Geospatial Solutions, Inc. |  Legal
   Contact Us