CURSOR routine in widgets [message #316] |
Tue, 23 June 1992 13:50 |
eaustin
Messages: 6 Registered: June 1992
|
Junior Member |
|
|
I have been trying to develop a widget based application for plotting
airplane tracks. More specifically, I would like to use the mouse to
mark points on a plot and then have the code draw lines or curves between
these points. I am using the command
CURSOR,x,y,3,/DATA
to read the cursor position on the plot when I click the mounse button.
But, it does not seem to work. I put PRINT statements just before and after
the CURSOR call so I know where the code is. The first time I click the
mouse button nothing happens, when I click the second time the CURSOR
routine correctly returns the position of the mouse at the second position.
The position at the first click never appears. When I call CURSOR again
the same thing happens; first click nothing, second click works.
I have not had any problem using CURSOR in a non-widget test. Any ideas?
--
Eric J. Austin EMAIL: eaustin@ll.mit.edu
|
|
|