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

Home » Public Forums » archive » Re: closing xwindows within IDL
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: closing xwindows within IDL [message #62189] Thu, 28 August 2008 09:38 Go to previous message
astroboy2k is currently offline  astroboy2k
Messages: 34
Registered: July 2007
Member
On Aug 28, 12:31 pm, David Fanning <n...@dfanning.com> wrote:
> Mark writes:
>> I'm running IDL remotely using x-windows, using multiple calls to
>> xobjview. At some point, my Mac seems to decide that there are two
>> many x-windows open and crashes. Is there a way for IDL to close such
>> an xwindow, or alternatively, close the window that xobjview opens.
>
> You could use the TLB keyword to get back the identifier of
> the top-level base widget used to create the "window". But
> you will have to remove the BLOCK keyword to get this to
> work. After you have written your image, just call
> Widget_Control, tlb, /Destroy to destroy XObjView. Note
> that the object hierarchy you passed to XObjView is *not*
> destroyed when XObjView is destroyed. So you will have
> to do that separately.
>
> Cheers,
>
> David
> --
> David Fanning, Ph.D.
> Fanning Software Consulting, Inc.
> Coyote's Guide to IDL Programming (www.dfanning.com)
> Sepore ma de ni thui. ("Perhaps thou speakest truth.")

Works like a charm, David, thanks! I'll have to reread your book
again. I should have caught onto the tlb keyword....
[Message index]
 
Read Message
Read Message
Previous Topic: closing xwindows within IDL
Next Topic: Newbie questin regarding Widget timers

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

Current Time: Sun Oct 12 05:58:08 PDT 2025

Total time taken to generate the page: 0.64201 seconds