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

Home » Public Forums » archive » Re: convert_coord & overplotting across multiple widget draw windows
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: convert_coord & overplotting across multiple widget draw windows [message #82664 is a reply to message #82663] Wed, 09 January 2013 18:48 Go to previous messageGo to previous message
havok2063 is currently offline  havok2063
Messages: 24
Registered: December 2012
Junior Member
Thanks. Saving the !p state did the trick. I have two related questions.

1.) Is there an easy way to erase the previous over-plotted lines without re-plotting the whole window?

2.) How would you suggest combining a single left-click to "click and plot something" and a left-click drag a rubber-band box to create a window to zoom in on the plot? I was thinking of putting the "click+plot" on a left button release event and have the box drawing on the motion, with a condition on release that if the new mouse coords are different than the old, then it's not a single click..so do the box thing and zoom.

On Wednesday, January 9, 2013 8:40:07 PM UTC-5, David Fanning wrote:
> Brian Cherinka writes:
>
>
>
>> I should also add that on subsequent clicks, the new item is still plotted in the 2nd window even though the over-plotting is breaking in the first window.
>
>
>
> The first rule of widget programming is to know which window you are
>
> drawing your graphics into. WSET is your friend here, and you should use
>
> it in any event handler that includes graphics commands. :-)
>
>
>
> Cheers,
>
>
>
> David
>
>
>
>
>
>
>
> --
>
> David Fanning, Ph.D.
>
> Fanning Software Consulting, Inc.
>
> Coyote's Guide to IDL Programming: http://www.idlcoyote.com/
>
> Sepore ma de ni thue. ("Perhaps thou speakest truth.")
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: IDL command line access from inside a widget?
Next Topic: convert_coord & overplotting across multiple widget draw windows

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

Current Time: Sat Oct 11 14:41:48 PDT 2025

Total time taken to generate the page: 1.70778 seconds