deleting a window created with envi_info_wid [message #43498] |
Mon, 18 April 2005 11:54  |
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  |
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  |
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  |
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/
|
|
|