[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Multiple widget_draw's and bad convert_coord
Todd Clements wrote:
>
> Hi all...
>
> The attached sample code shows my problem. I have multiple widget_draws
> in a program that I'm writing, and I get button events from them so I
> can let the user select portions of a correlated spectrum to use as a
> gate for another spectrum. Anyway, I need to be able to get the
> coordinates that were selected in multiple plots (one at a time, of
> course), but when I try to do this, convert_coord always returns the
> coordinates from the last plot even if I'm clicking in the first plot,
> no matter how often I use wset to try and set the window.
where do you save the properties of the first plot?
--
Paul van Delst A little learning is a dangerous thing;
CIMSS @ NOAA/NCEP Drink deep, or taste not the Pierian spring;
Ph: (301)763-8000 x7274 There shallow draughts intoxicate the brain,
Fax:(301)763-8545 And drinking largely sobers us again.
Alexander Pope.