The BOX_CURSOR procedure emulates the operation of a variable-sized box cursor (also known as a " marquee" selector).
CAUTION: BOX_CURSOR does not function properly when used within a draw widget. See the BUTTON_EVENTS and MOTION_EVENTS keywords in WIDGET_DRAW .
This routine is written in the IDL language. Its source code can be found in the file
box_cursor.pro
in the
lib
subdirectory of the IDL distribution.
Once the box cursor has been realized, hold down the left mouse button to move the box by dragging. Hold down the middle mouse button to resize the box by dragging. (The corner nearest the initial mouse position is moved.) Press the right mouse button to exit the procedure and return the current box parameters.
If this keyword is set, the arguments X0 , Y0 , NX , and NY contain the initial position and size of the box.
CURSOR , CURSOR_CROSSHAIR keyword, CURSOR_IMAGE keyword, CURSOR_STANDARD keyword, CURSOR_XY keyword