Well, it might seem as if I lack consequence ;-)
But I do remember as you, that there can be trouble using this handler.

Maybe you'll get further using the WinFocusChangedHandler in stead. This handler is 
called whenever there is a change in which window is active/in front.
This must also mean that it will be caled when a window has been closed.

Peter Horsb�ll M�ller
GIS Developer
Geographical Information & IT

COWI A/S
Odensevej 95
DK-5260 Odense S
Denmark
 
Tel     +45 6311 4900
Direct  +45 6311 4908
Mob     +45 5156 1045
Fax     +45 6311 4949
E-mail  [EMAIL PROTECTED]
http://www.cowi.dk

*****CHANGE OF ADDRESS - COWI's offices in Odense are now under the same roof*****
On December 8th. 2003, Geographical Information & IT moved from Rugaardsvej 55, 5000 
Odense C to Odensevej 95, 5260 Odense S. 
Please note our new telephone, direct and telefax numbers.



> -----Original Message-----
> From: David Baker [mailto:[EMAIL PROTECTED] 
> Sent: Sunday, February 01, 2004 1:50 AM
> To: [EMAIL PROTECTED]
> Subject: RE: MI-L Menu command doesn't work in Sub WinClosedHandler
> 
> 
> On 31 Jan 2004 at 15:08, Peter Horsb�ll M�ller <[EMAIL PROTECTED]> wrote:
> 
> > The problem might be that the WinClosedHandler is called before the 
> > window is "completely" closed, so when tiling the windows 
> MapInfo is 
> > seing three windows, not only two as you suspect.
> 
> Oh, bad luck. And I only implemented this after reading your 
> archived post in 
> DirectionsMag! :-)
> 
http://lists.directionsmag.com/discussion/read.php?f=7&i=35598&t=35595

"Another thing with this WinClosedHandler is that as I remember it it isn't called 
before 
this window actual is closed but after it has been closed."


I added a statement
        Print CommandInfo(CMD_INFO_WIN)
as the first line of the WinClosedHandler, and it comes up with the ID of the mapper 
window, with the Help file saying "Integer value, representing the ID of the window 
that 
changed or the window that closed.". I guess the word "completely" is the operative 
word here. Or maybe it was a bug & has been fixed in later versions since 4.5.

I was actually surprised that nobody had come up against this before, but then again, 
I 
guess re-tiling windows automatically without the operator asking for it isn't exactly 
Windows "standard". :-)

Cheers,

Dave

---------------------------------------------------------------------
List hosting provided by Directions Magazine | www.directionsmag.com | To unsubscribe, 
e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Message number: 10191



---------------------------------------------------------------------
List hosting provided by Directions Magazine | www.directionsmag.com |
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Message number: 10195

Reply via email to