2 # $Id: mouselab_1.dem,v 1.1 2006/07/10 19:49:54 sfeam Exp $
4 # Demonstrate screen interaction using mouse variables
6 # MOUSE_X MOUSE_Y MOUSE_KEY MOUSE_CHAR
8 # On entry, LID is the identifier for the previous label
11 set label 2 sprintf(">>> READY FOR LABEL %d <<<",LID-100)
12 set label 2 at graph .02, graph .65 tc lt (LID-100)
16 # Get mouse position and first character of label
22 set label LID LABEL at LABEL_X, LABEL_Y
25 # Call routine that catches keystrokes one by one and
30 # Print out final label details
35 # Loop until we see an <esc>
37 if (MOUSE_KEY != 27) reread