set rband

set rband num mode x1 y1 x2 y2

Sets the mode and defines the active region for the 'rubber band' widget.

After executing set rband, rubber bands are defined by executing q pos which freezes the system until the user clicks, drags, and then releases the mouse somewhere within the active rband area. See the q pos reference page for details on the returned information.

Usage Notes

  1. In box mode, as the user clicks and drags the mouse in the active rband area a box is drawn with one corner located at the initial click and the opposite corner located at the release point. In line mode, a line is drawn between these two points.


See widgets for more information and examples.