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

Home » Public Forums » archive » deleting a window created with envi_info_wid
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
deleting a window created with envi_info_wid [message #43498] Mon, 18 April 2005 11:54 Go to next message
Francois L. is currently offline  Francois L.
Messages: 19
Registered: December 2004
Junior Member
Hello,

How a window created with envi_info_wid can be deleted ?

str = 'hello world'
envi_info_wid, str, title='information'

Does it have a window number so I can use wdelete ?

Thank you,

Francois.
Re: deleting a window created with envi_info_wid [message #43608 is a reply to message #43498] Wed, 20 April 2005 13:40 Go to previous message
Jeff N. is currently offline  Jeff N.
Messages: 120
Registered: April 2005
Senior Member
Francois,

Any time I have created widgets using ENVI routines, I've always
created my base widget using WIDGET_AUTO_BASE, and managed it with
AUTO_WID_MNG. AUTO_WID_MNG automatically creates and handles OK and
Cancels buttons. If you can, I'd try using these routines in your code
and see if you can get the results you want that way.

Jeff


Francois L. wrote:
> Thank you for the anwser.
> What about destroying the window if created as follow:
>
> tlb = widget_base(title='Process completed...', column=1,
> xsize=256,ysize=128)
> wtext = widget_base(tlb, /column)
> message1 = widget_label(wtext,value = 'Please process to step 2',

> /align_left)
> widget_control,tlb,/realize
>
> Thanks,
>
> Francois.
>
>
>
>
> "David Fanning" <davidf@dfanning.com> wrote in message
> news:MPG.1ccdb2a69046e6869899cb@news.frii.com...
>> Francois L. writes:
>>
>>> How a window created with envi_info_wid can be deleted ?
>>>
>>> str = 'hello world'
>>> envi_info_wid, str, title='information'
>>>
>>> Does it have a window number so I can use wdelete ?
>>
>> Not knowing a thing about ENVI, I would try something
>> like this:
>>
>> str = 'hello world'
>> envi_info_wid, str, title='information'
>> envi_window = !D.Window
>> WDelete, envi_window
>>
>> Cheers,
>>
>> David
>> --
>> David Fanning, Ph.D.
>> Fanning Software Consulting, Inc.
>> Coyote's Guide to IDL Programming: http://www.dfanning.com/
Re: deleting a window created with envi_info_wid [message #43619 is a reply to message #43498] Wed, 20 April 2005 09:02 Go to previous message
Francois L. is currently offline  Francois L.
Messages: 19
Registered: December 2004
Junior Member
Thank you for the anwser.
What about destroying the window if created as follow:

tlb = widget_base(title='Process completed...', column=1,
xsize=256,ysize=128)
wtext = widget_base(tlb, /column)
message1 = widget_label(wtext,value = 'Please process to step 2',
/align_left)
widget_control,tlb,/realize

Thanks,

Francois.




"David Fanning" <davidf@dfanning.com> wrote in message
news:MPG.1ccdb2a69046e6869899cb@news.frii.com...
> Francois L. writes:
>
>> How a window created with envi_info_wid can be deleted ?
>>
>> str = 'hello world'
>> envi_info_wid, str, title='information'
>>
>> Does it have a window number so I can use wdelete ?
>
> Not knowing a thing about ENVI, I would try something
> like this:
>
> str = 'hello world'
> envi_info_wid, str, title='information'
> envi_window = !D.Window
> WDelete, envi_window
>
> Cheers,
>
> David
> --
> David Fanning, Ph.D.
> Fanning Software Consulting, Inc.
> Coyote's Guide to IDL Programming: http://www.dfanning.com/
Re: deleting a window created with envi_info_wid [message #43697 is a reply to message #43498] Mon, 18 April 2005 12:04 Go to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Francois L. writes:

> How a window created with envi_info_wid can be deleted ?
>
> str = 'hello world'
> envi_info_wid, str, title='information'
>
> Does it have a window number so I can use wdelete ?

Not knowing a thing about ENVI, I would try something
like this:

str = 'hello world'
envi_info_wid, str, title='information'
envi_window = !D.Window
WDelete, envi_window

Cheers,

David
--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Re: Fitting a function with multiple independent variables
Next Topic: Re: indexing 2-d vs. 3-d arrays...ARGH!

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

Current Time: Sat Oct 11 12:35:51 PDT 2025

Total time taken to generate the page: 1.44159 seconds