Re: closing xwindows within IDL [message #62189] |
Thu, 28 August 2008 09:38  |
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....
|
|
|