comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Dragging mouse question
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Dragging mouse question [message #3964] Thu, 13 April 1995 00:00 Go to next message
cabr69 is currently offline  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 #4044 is a reply to message #3964] Sun, 16 April 1995 00:00 Go to previous messageGo to next message
pellet is currently offline  pellet
Messages: 12
Registered: October 1994
Junior Member
D.H.Brooks (cabr69@ccsun.strath.ac.uk) wrote:
: 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.


Well, I'm not sure this is simple enough, but you could draw your graph
in a draw widget with the motion and button event set. Your event handler
could then refresh your plot as you move the mouse around in the plot window.

Hope this helps.

Jeff
pellet@inrs-ener.uquebec.ca
Re: Dragging mouse question [message #4100 is a reply to message #3964] Sun, 23 April 1995 00:00 Go to previous message
rouse is currently offline  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|
+----------------------------------------------------------- -+
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: BUG in VELOVECT.PRO
Next Topic: Platform recommendation/tradeoffs?

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Wed Oct 08 17:34:52 PDT 2025

Total time taken to generate the page: 0.00556 seconds