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 #82666 is a reply to message #82665] Wed, 09 January 2013 17:36 Go to previous messageGo to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Brian Cherinka writes:

> I have 2 widget draw windows and I want to click and highlight in one and plot something in the other. I've managed to get the mouse coords to convert properly upon switching back and forth between windows, but when I overplot lines for highlighting, the lines, after the first call, either become shifted or do not plot at all. So something is still not quite right with the window coord system.

I would say you need to at least restore the !P system variable, too.
Otherwise, the coordinates won't know where the plot is in the window.
(The windows are presumably the same size, right?)

I always position graphics with the POSITION keyword, so I
find the cgCoord object perfect for keeping track of this
kind of thing. Just call the Draw method before you do any
drawing of any sort.

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 11:07:26 PDT 2025

Total time taken to generate the page: 1.67946 seconds