Dragging mouse question [message #3964] |
Thu, 13 April 1995 00:00  |
cabr69
Messages: 8 Registered: April 1995
|
Junior Member |
|
|
Hello everyone,
I have written a (very simple) procedure which displays data points on an xy-axis
and allows you to manipulate them using the left mouse button (i.e. it just uses
tvrdc,x,y,/down to get the point-within a specified range-and reads the position of
the next click to place it).At the moment all it does is re-plot every time you move
a point and although it is satisfactory for my purposes it takes a while to get the plot line looking smooth.Clearly it would be neater if i could drag the points and have the screen continually update the plot so i could see the original line itself moving
with the cursor.I expect it to be fairly simple but have looked in the IDl manual/reference guide and at the library routines for clues and have found nothing helpful.Does anyone know what commands i should be using? Any help would be
appreciated.
Cheers,
David
|
|
|
|
Re: Dragging mouse question [message #4100 is a reply to message #3964] |
Sun, 23 April 1995 00:00  |
rouse
Messages: 17 Registered: July 1994
|
Junior Member |
|
|
In article <3mjaks$5lk@rockall.cc.strath.ac.uk>, cabr69@ccsun.strath.ac.uk ( "D.H.Brooks") writes:
|>Path: lanews.la.asu.edu!news.asu.edu!asuvax!cs.utexas.edu!howland. reston.ans.net!news.sprintlink.net!EU.net!uknet!str-ccsun!us enet
|>From: cabr69@ccsun.strath.ac.uk ( "D.H.Brooks")
|>Newsgroups: comp.lang.idl-pvwave
|>Subject: Dragging mouse question
|>Date: Thu, 13 Apr 95 06:57:48 MST
|>Organization: The University of Strathclyde
|>Lines: 17
|>Message-ID: <3mjaks$5lk@rockall.cc.strath.ac.uk>
|>Reply-To: cabr69@ccsun.strath.ac.uk
|>NNTP-Posting-Host: nevis.cc.strath.ac.uk
|>
|>Hello everyone,
|>
|>I have written a (very simple) procedure which displays data points on an xy-axis
|>and allows you to manipulate them using the left mouse button (i.e. it just uses
|>tvrdc,x,y,/down to get the point-within a specified range-and reads the position of
|>the next click to place it).At the moment all it does is re-plot every time you move
|>a point and although it is satisfactory for my purposes it takes a while to get the plot line looking smooth.Clearly it would be neater if i could drag the points and have the screen continually update the plot so i could see the original line itself moving
|>with the cursor.I expect it to be fairly simple but have looked in the IDl manual/reference guide and at the library routines for clues and have found nothing helpful.Does anyone know what commands i should be using? Any help would be
You could use cursor,x,y,/nowait in a loop. Or you could use a draw widget
that returns motion events.
- Roger
+----------------------------------------------------------- -+
|Roger B. Rouse + # # # . |
| # . + |
|Arizona State University # + + # |
|Dept. Physics & Astronomy + + + # + |
|Tempe, Az, 85287-1504 + + # |
| . . @ . . |
|rouse@sevens.la.asu.edu # + + |
| + # + + + |
|"The AscII Galaxy found # + + . |
| in the Local Network." + . # |
| . # + # . Rouse|
+----------------------------------------------------------- -+
|
|
|