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

Home » Public Forums » archive » Re: Linking buttons to plot 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: Linking buttons to plot windows [message #42071 is a reply to message #42060] Fri, 17 December 2004 10:53 Go to previous messageGo to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Clive Cook writes:

> I am using the IDL GUI builder and i want a display with two plotting window
> and 2 buttons on one page. Basically how do you link each button to the
> desired plotting window. At the moment my plot appears in the last plot
> window i create. Any ideas?

In your event handler you will have to find the ID
of the draw widget you want to plot into, get it's
value (which will be the correct window index number),
and make this window the current graphics window (with
WSET). Then draw your plot.

How one does this in the GUI Builder, I don't know. I've
never used it. It will probably involve some kind of
FIND_BY_UNAME, or something of the sort. :-)

Cheers,

David

P.S. You are probably lucking your plot went into your
widget windows at all. The number one problem with widget
programs I look at is that people have NO idea what window
they are drawing graphics in! In widget programs, as in life,
if you are not going to be lucky, you better be knowledgeable.
There is only one current graphics window in IDL, ever! :-)

--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: Widgets for dummies?
Next Topic: Linking buttons to plot windows

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

Current Time: Thu Dec 04 20:23:11 PST 2025

Total time taken to generate the page: 1.68135 seconds