1. big red X

posted by: gwalters at sc.rr.com

How do you trap the "big red X" click on a window so that I can close the main
window?

new topic     » topic index » view message » categorize

2. Re: big red X

posted by: bkb at cnw.com

> posted by: gwalters at sc.rr.com
> 
> How do you trap the "big red X" click on a window so that I can 
> close the main window?

Well I just googled the net and checked ebay and I can't seem to find a "big red
X" trap anywhere...  Maybe if you provided more search terms:  What platform are
you programming for?  What library are you using, if any?  If your window's not
closing, it might be busy doing something...

With more info I might be able to help.
-- Brian

new topic     » goto parent     » topic index » view message » categorize

3. Re: big red X

Sorry, It's the XP X to close the window. The window that has it's X clicked
does close, but I want trap that event so I can clise it's parent window
which is now left open. I'm using win32lib.ew.

george
----- Original Message -----
From: "Guest" <guest at RapidEuphoria.com>
To: <EUforum at topica.com>
Subject: Re: big red X


>
>
> posted by: bkb at cnw.com
>
> > posted by: gwalters at sc.rr.com
> >
> > How do you trap the "big red X" click on a window so that I can
> > close the main window?
>
> Well I just googled the net and checked ebay and I can't seem to find a
"big red X" trap anywhere...  Maybe if you provided more search terms:  What
platform are you programming for?  What library are you using, if any?  If
your window's not closing, it might be busy doing something...
>
> With more info I might be able to help.
> -- Brian
>
>
>
> For Topica's complete suite of email marketing solutions visit:
> http://www.topica.com/?p=TEXFOOTER
>

new topic     » goto parent     » topic index » view message » categorize

4. Re: big red X

posted by: (not specified)

setHandler(childWindow,w32HClose,{})


>From the win32lib docs:

[const]
w32HClose
A Window is closed.
Category: Events

parms = {}

This typically occurs via closeWindow, although the user can select the close
control on the window as well.

Closing a window does not actually destroy it (unless it is the main window; the
window is merely hidden. Refer to closeWindow for more details.

If the onClose routine calls returnValue() with a non-zero parameter, win32lib
aborts the Close operation, as if it hadn't been invoked. In this way it is
possible to do a conditional close.

This event is only triggered for a Window.

new topic     » goto parent     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu