Thank you both for your replies.

I thought of intercepting the File menu, but I guess that won't stop the
user from clicking on the app close button, which seems to be the way it's
usually shut down.

Thanks again

- Richard

----- Original Message -----
From: "Martin Roundill" <[EMAIL PROTECTED]>
To: "'Richard Greenleaf'" <[EMAIL PROTECTED]>;
<[EMAIL PROTECTED]>
Sent: Thursday, March 27, 2003 9:13 PM
Subject: RE: MI-L EndHandler - asking again


> Richard,
>
> Lars, is correct in his reply.  You would need to use API functions to
> disable MapInfo system menus.  However you can intercept the file/exit
menu
> option (or any other menu options) with alter menu command as in the
> following example:
>
> declare sub main
> declare sub mycode
> Sub Main
> alter menu item 113 calling MyCode
> End Sub
> Sub MyCode
> if ask("are you sure","yes","no") then
> end mapinfo
> end if
> End Sub
>
>
> This will at least give you a chance to clean up in some circumstances.
>
> Regards
>
> Martin
>
>
> Martin Roundill
> GIS and WEB MANAGER, IM (Ext 8344)
> Providing effective coordinated and independent expertise, supporting all
> Council's operational and strategic information management requirements.
>
>
>
> -----Original Message-----
> From: Richard Greenleaf [mailto:[EMAIL PROTECTED]
> Sent: Friday, 28 March 2003 07:48
> To: [EMAIL PROTECTED]
> Subject: MI-L EndHandler - asking again
>
>
> I'm still struggling with this problem - if anyone has advice I'd be very
> grateful for it.
>
> - Richard
>   ----- Original Message -----
>   From: Richard Greenleaf
>   To: [EMAIL PROTECTED]
>   Sent: Sunday, March 23, 2003 11:03 PM
>   Subject: EndHandler not working
>
>
>   I have an MB application that creates various temporary data in tables
and
> in the Cosmetic layer.   None of this needs to saved permanently, and when
> the user closes MapInfo I want it to end neatly without prompting to save
> the temporary data.
>   I tried using an EndHandler routine to clean up these tables, but MI
> doesn't call the EndHandler until AFTER prompting to save the data.
>   Is this normal operation for EndHandler, or I am I not using it
properly?
>   How else can I stop the unwanted prompts?
>   - Richard
>
> Note:
> This message is for the named person's use only.  It may contain
confidential, proprietary or legally privileged information.  No
confidentiality or privilege is waived or lost by any mistransmission.  If
you receive this message in error, please immediately delete it and all
copies of it from your system, destroy any
> hard copies of it and notify the sender.  You must not, directly or
indirectly, use, disclose, distribute, print, or copy any part of this
message if you are not the intended recipient. Any views expressed in this
message are those of the individual sender, except where the message states
otherwise and the sender is authorised to state them to be the views of any
such entity.
>
> Thank You.
>
> http://www.waitakere.govt.nz
>
> ---------------------------------------------------------------------
> List hosting provided by Directions Magazine | www.directionsmag.com |
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> Message number: 6138
>


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

Reply via email to