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 
Return to the default flat view Create a new topic Submit Reply
Re: Dragging mouse question [message #4044 is a reply to message #3964] Sun, 16 April 1995 00:00 Go to previous messageGo to previous 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
[Message index]
 
Read Message
Read Message
Read Message
Previous Topic: BUG in VELOVECT.PRO
Next Topic: Platform recommendation/tradeoffs?

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

Current Time: Fri Oct 10 03:57:30 PDT 2025

Total time taken to generate the page: 0.24148 seconds