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

Home » Public Forums » archive » Re: device coords to map coords? The answer
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
Re: device coords to map coords? The answer [message #5447] Fri, 15 December 1995 00:00
newman is currently offline  newman
Messages: 4
Registered: December 1995
Junior Member
An anonymous donor shared the secrets of recovering a cursor
location in data space from multiple map_set windows:

Your code looks something like this:

Window, 1
Map_Set, /Grid, /Continents, /Orthographic
Cursor, x, y & Print, x, y ; Select Colorado!

xs = !X.S
ys = !Y.S
mapstuff = !Map

Window, 2
Map_Set, /Grid, /Continents, /Cylindrical, Limit=[20, -160, 80, -40]
Cursor, x, y & Print, x, y ; Select Colorado!

WSet, 1
!X.S = xs
!Y.S = ys
!Map = mapstuff

Cursor, x, y ; Back in Window 1 data space!

--
===============================================
Art Newman -
[not a spokesman for] Hughes Aircraft Company

take your pick: newman@dune.es.hac.com
amnewman@ccgate.hac.com
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Re: Nice File widgets?
Next Topic: TV bug (memory?) under Solaris 2.4

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

Current Time: Fri Oct 10 19:13:05 PDT 2025

Total time taken to generate the page: 0.64201 seconds