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

Home » Public Forums » archive » Re: Realizing a widget only once
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: Realizing a widget only once [message #39008 is a reply to message #39006] Wed, 14 April 2004 14:14 Go to previous messageGo to previous message
R.Bauer is currently offline  R.Bauer
Messages: 1424
Registered: November 1998
Senior Member
Ahammer Helmut wrote:

> Is there any possibility to open and realize a widget only once, even
> it is called several times? The widget is mainly a draw widget for
> images and is called from an other program or widget like this:
>
> DISPLAYIMAGE, Image = Image
>
> The first call, or if there is no such widget present, should really
> realize the widget. The second call should not realize a second
> widget, but only put the new data (image) to the draw widget.
> I think the /OVERPLOT keyword for IIMAGE does equivalently what I
> want, but I can`t follow the itools syntax for this feature.
>
> Thank you for every input,
> Helmut Ahammer

Dear Helmut,

the only thing you need to know is the id of the draw widget. You do not
need to copy this information elsewhere. You must only ask for it.

If the draw widget is already realized then you can get the id of the
widget by it's uname.
id=WIDGET_INFO(event.top,FIND_BY_UNAME='DRAW_WINDOW')


How to use uname you could see here:
http://www.fz-juelich.de/vislab/software/idl_samples/Widgets /Oberflaechen
wid5.pro


Further examples you'll find at
http://www.fz-juelich.de/vislab/software/idl_samples
IDL-Beispielsammlung.html

cheers

Reimar



--
Forschungszentrum Juelich
email: R.Bauer@fz-juelich.de
http://www.fz-juelich.de/icg/icg-i/
============================================================ ======
a IDL library at ForschungsZentrum Juelich
http://www.fz-juelich.de/icg/icg-i/idl_icglib/idl_lib_intro. html
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: processor for idl on MoinMoin
Next Topic: Re: Announcing GDL 0.7.2, now with python support

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

Current Time: Sat Oct 11 05:07:33 PDT 2025

Total time taken to generate the page: 1.12303 seconds