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






      Interactive box on image diaply.


Calling Sequence

      movbox, x, y, dx, dy, code


Keyword Parameters


        XRANGE=xran Return X range of selected box.
        YRANGE=xran Return Y range of selected box.
          Returned ranges are [0,0] if data coordinates have not
          been established (no plot done yet).
        COLOR=clr, box color. -2 for dotted box.
        DXMIN=dxmn Set minimum allowed x size in pixels.
        DYMIN=dymn Set minimum allowed y size in pixels.
        /NOERASE prevents last box from being erased on entry.
        /EXITERASE erases box on alternate exit.
        /POSITION lists box position after each change.
          POSITION=n gives screen line for box listing (top=1).
        /YREVERSE means y is 0 at top of screen.
        XFACTOR=xf conversion factor from device coordinates
          to scaled x coordinates.
        YFACTOR=yf conversion factor from device coordinates
          to scaled y coordinates.
        TITLE=txt title for box position listing.
        /EXITLIST lists box position on exit.
        /COMMANDS lists box commands on entry.
        /LOCKSIZE locks box size to entry size.
        XSIZE=factor. Mouse changes Y size only.
          Xsize = factor*Ysize.
        YSIZE=factor. Mouse changes X size only.
          Ysize = factor*Xsize.
        /NOMENU just does an alternate exit for middle button.
        /OPTIONS puts a box on the image that says options.
          If mouse wiggled inside this box options menu pops up.
        X_OPTION=x device X coordinate for options box (def=0).
        Y_OPTION=y device Y coordinate for options box (def=0).
        ECHO=win2 Echo box in window win2.


      code = exit code. (2=alternate, 4=normal exit) out

Common Blocks



          Left button: Toggle bewteen move box and change size.
          Middle button: Option menu or alternate exit.
          Right button: Normal exit (erases box).
        Y reversal and coordinate scaling only apply to
        box position and size listing. MOVBOX is still called
        and still exits with actual device coordinates.

Modification History

      R. Sterner 25 July, 1989
      R. Sterner, 6 Jun, 1990 --- added menu.
      R. Sterner, 13 June, 1990 --- added /nomenu
      R. Sterner, Oct, 1991 --- fixed for DOS.
      R. Sterner, 16 Mar, 1992 --- upgraded coordinate listing.
      R. Sterner, 18 Feb, 1993 --- Added b=a(x1:x2,y1:y2) listing.
      R. Sterner, 3 Dec, 1993 --- Added XRANGE and YRANGE keywords.
      R. Sterner, 7 Dec, 1993 --- Added DXMIN, DYMIN keywords.
      R. Sterner, 1994 Nov 27 --- switched !err to !mouse.button.
      R. Sterner, 2005 Jun 29 --- Added ECHO=win2.
  Copyright (C) 1989, 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.

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