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

Home » Public Forums » archive » Re: Closing out of a Window
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
Re: Closing out of a Window [message #50344] Thu, 28 September 2006 10:06 Go to next message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
David Fanning writes:

> Oh, it can't possibly be that easy, can it? :-(

Humm. Well, I guess I knew that. But I still prefer the
old tried and true way of a CLEANUP routine. :-)

Cheers,

David
--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Re: Closing out of a Window [message #50345 is a reply to message #50344] Thu, 28 September 2006 10:03 Go to previous messageGo to next message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Benjamin Hornberger writes:

> Set the /TLB_KILL_REQUEST_EVENTS to WIDGET_BASE and define an event
> handler.

Oh, it can't possibly be that easy, can it? :-(

Cheers,

David

P.S. Let's just say the afternoon session may be a bit
longer than I originally intended as I cover this new
material.

--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Re: Closing out of a Window [message #50346 is a reply to message #50345] Thu, 28 September 2006 09:40 Go to previous messageGo to next message
Benjamin Hornberger is currently offline  Benjamin Hornberger
Messages: 258
Registered: March 2004
Senior Member
ChristopherFlorio@gmail.com wrote:
> Does anyone know of a way to link the event of closing a GUI window
> using the "x" with a procedure or function?
>

Set the /TLB_KILL_REQUEST_EVENTS to WIDGET_BASE and define an event
handler.

Good luck,
Benjamin
Re: Closing out of a Window [message #50347 is a reply to message #50346] Thu, 28 September 2006 09:41 Go to previous messageGo to next message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
ChristopherFlorio@gmail.com writes:

> Does anyone know of a way to link the event of closing a GUI window
> using the "x" with a procedure or function?

I'm guessing you want to do this because your "cleanup"
code is in your EXIT button event handler. This is the
wrong place to put it. Rather, your "cleanup" code should
be in a CLEANUP (if you assign it to the TLB with XMANAGER)
or KILL_NOTIFY (if to assing it with the KILL_NOTIFY keywword)
callback procedure that is called when the widget associated
with the callback is killed.

Cheers,

David
--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Re: Closing out of a Window [message #50487 is a reply to message #50344] Thu, 28 September 2006 13:11 Go to previous message
Benjamin Hornberger is currently offline  Benjamin Hornberger
Messages: 258
Registered: March 2004
Senior Member
David Fanning wrote:
> David Fanning writes:
>
>
>> Oh, it can't possibly be that easy, can it? :-(
>
>
> Humm. Well, I guess I knew that. But I still prefer the
> old tried and true way of a CLEANUP routine. :-)
>

Of course you are right; I actually refered to the case where you want
to inhibit the window being closed (e.g., if you want to have the
closing confirmed), but forgot to mention that explicitly ...

Benjamin
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: IDL on Ubuntu?
Next Topic: Re: How can i get the co-ordinates of the peaks in a plot?

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

Current Time: Wed Oct 08 13:52:37 PDT 2025

Total time taken to generate the page: 0.00565 seconds