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

Home » Public Forums » archive » ENVI: group leader for envi_plot_data
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
ENVI: group leader for envi_plot_data [message #40214] Tue, 27 July 2004 00:32 Go to next message
Mort Canty is currently offline  Mort Canty
Messages: 134
Registered: March 2003
Senior Member
Hi again,

Another mystery (for me). I have a GUI with an event handler that looks like
this:

PRO on_button_1, event
widget_control, event.top, Get_Uvalue=info, /no_copy
.
.
envi_plot_data, info.X, info.Y, group = event.top
.
.
widget_control, event.top, Set_Uvalue=info, /no_copy
END

I would have thought that, when I now kill the base widget, the ENVI plot
would also be killed. It isn't.

- Mort
Re: group leader for envi_plot_data [message #40296 is a reply to message #40214] Wed, 28 July 2004 03:50 Go to previous messageGo to next message
Mort Canty is currently offline  Mort Canty
Messages: 134
Registered: March 2003
Senior Member
Sorry, I forgot to ask for help on this one (probably explains why I haven't
got any yet) .

Thanks

- Mort
Re: group leader for envi_plot_data [message #40302 is a reply to message #40296] Tue, 03 August 2004 19:19 Go to previous messageGo to next message
tianyf is currently offline  tianyf
Messages: 6
Registered: June 2004
Junior Member
I think it is the problem of envi_plot_data. I found a solution:
...
envi_plot_data, ..., base=base
widget_control, base, group_leader=event.top
...

That works fine in my test program.

Tian

"Mort Canty" <m.canty@fz-juelich.de> wrote in message news:<ceo1g3$7n57$1@zam602.zam.kfa-juelich.de>...
> "Reimar Bauer" <R.Bauer@fz-juelich.de> schrieb im Newsbeitrag
> news:cem75o$1491$1@zam602.zam.kfa-juelich.de...
>> Dear Mort
>>
>> I don't understand what you like to know from us.
>> This behaviour seems to be normal for me because
>> the envi plot is called within the event handler of the base widget.
>> The event handler is only called from the base widget. The plot needs
>> resources from the base widget e.g. a draw window or something else.
>> Then if you destroy the base all is over.
>>
>> Reimar
>>
>> --
> Hi Reimar,
>
> That's my problem: when I destroy the base widget, all is *not* over. The
> ENVI plot persists until I close it manually or until I close the ENVI
> session. If that is normal behavior, then I don't understand what the
> purpose of the keyword GROUP is in the ENVI_PLOT_DATA procedure.
>
> Mort
Re: group leader for envi_plot_data [message #40316 is a reply to message #40296] Tue, 03 August 2004 05:46 Go to previous messageGo to next message
Mort Canty is currently offline  Mort Canty
Messages: 134
Registered: March 2003
Senior Member
"Reimar Bauer" <R.Bauer@fz-juelich.de> schrieb im Newsbeitrag
news:cem75o$1491$1@zam602.zam.kfa-juelich.de...
> Dear Mort
>
> I don't understand what you like to know from us.
> This behaviour seems to be normal for me because
> the envi plot is called within the event handler of the base widget.
> The event handler is only called from the base widget. The plot needs
> resources from the base widget e.g. a draw window or something else.
> Then if you destroy the base all is over.
>
> Reimar
>
> --
Hi Reimar,

That's my problem: when I destroy the base widget, all is *not* over. The
ENVI plot persists until I close it manually or until I close the ENVI
session. If that is normal behavior, then I don't understand what the
purpose of the keyword GROUP is in the ENVI_PLOT_DATA procedure.

Mort
Re: group leader for envi_plot_data [message #40335 is a reply to message #40296] Mon, 02 August 2004 11:27 Go to previous messageGo to next message
R.Bauer is currently offline  R.Bauer
Messages: 1424
Registered: November 1998
Senior Member
Mort Canty wrote:

>
> Sorry, I forgot to ask for help on this one (probably explains why I
> haven't got any yet) .
>
> Thanks
>
> - Mort

Dear Mort

I don't understand what you like to know from us.
This behaviour seems to be normal for me because
the envi plot is called within the event handler of the base widget.
The event handler is only called from the base widget. The plot needs
resources from the base widget e.g. a draw window or something else.
Then if you destroy the base all is over.

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
Re: group leader for envi_plot_data [message #40449 is a reply to message #40302] Wed, 04 August 2004 00:01 Go to previous message
Mort Canty is currently offline  Mort Canty
Messages: 134
Registered: March 2003
Senior Member
Great, Tian. It works for me, too. Many thanks.

Mort


"Y.F. Tian" <tianyf@gmail.com> schrieb im Newsbeitrag
news:d1ba5f20.0408031819.6d7d9070@posting.google.com...
> I think it is the problem of envi_plot_data. I found a solution:
> ...
> envi_plot_data, ..., base=base
> widget_control, base, group_leader=event.top
> ...
>
> That works fine in my test program.
>
> Tian
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: $t1 Almost FREE MONEY !! $t1
Next Topic: Programatically create structure

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

Current Time: Fri Oct 10 08:10:33 PDT 2025

Total time taken to generate the page: 0.32257 seconds