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

Home » Public Forums » archive » Re: vertical line that moves with cursor in draw widget
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: vertical line that moves with cursor in draw widget [message #60713] Sun, 08 June 2008 15:56 Go to previous message
Michael Galloy is currently offline  Michael Galloy
Messages: 1114
Registered: April 2006
Senior Member
cgoethel@igpp.ucla.edu wrote:
> Hello, I have a draw_widget with motion events set up. I draw a
> vertical line (using plots) which follows the cursor as it moves
> through the draw area. I can get the vertical line to follow the
> cursor easily enough - but I can't seem to figure out how to erase the
> previous lines. All the lines remain drawn. Any suggestions?
> Thanks! Cindy

Use a pixmap (created with "window, /pixmap"). All drawing that you
currently do should go to the pixmap. Then copy the pixmap to the actual
draw window (with "device, copy=r"). This copy can be done very quickly.
Finally draw your lines on that. Every time the cursor moves, copy the
pixmap again and draw the new lines.

Mike
--
www.michaelgalloy.com
Tech-X Corporation
Software Developer II
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: Labelling the axes on a log plot
Next Topic: Re: widget, draw and file pickup

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

Current Time: Sun Oct 12 00:26:26 PDT 2025

Total time taken to generate the page: 2.63957 seconds