The bug being, that the MB event handler named WinClosedHandler is only
called AFTER the save/discard prompt appears.
If it was called BEFORE the prompt (as it should be), using a
WinClosedHandler subroutine to clear the cosmetics would do the trick.
And clearing the cosmetic layer can actually be done in a single statement:
Rollback Table WindowInfo(someid,WIN_INFO_TABLE)
with "someid" being either CommandInfo(CMD_INFO_WIN), FrontWindow() or some
integer variable.
BTW: This also applies to Layout windows, which is actually one single
cosmetic layer.
Lars Nielsen
**********************************************************
Lars Nielsen [EMAIL PROTECTED]
Senior Programmer, MapXtreme iGIS Specialist
Kampsax/MapInfo, Odense http://www.mapinfo.dk
Authorized MapInfo Distributor in Denmark & Norway
Address: Rugaardsvej 55, DK-5000 Odense C
Telephone: +45 6313-5000 Facsimile +45 6313-5090
**********************************************************
"Spencer Simpson"
<[EMAIL PROTECTED]> Til: "Mapinfo Mailing
List" <[EMAIL PROTECTED]>
Sendt af: cc:
[EMAIL PROTECTED] Vedr.: Re: MI-L Clearing the
Cosmetic Layer
onsmag.com
15-05-01 18:36
Besvar venligst til "Spencer
Simpson"
"Baker, Gareth" wrote:
> "select * from layerinfo(frontwindow(),0,1) into sel"
> "delete from sel"
>
> This avoids the Discard prompt at the point when the cosmetic
> layer is cleared but when a user then comes to close the mapper
> window they are again prompted to save or discard.
I hope people agree with me that this is a bug in MapInfo.
Spencer
_______________________________________________________________________
List hosting provided by Directions Magazine | www.directionsmag.com |
To unsubscribe, send e-mail to [EMAIL PROTECTED] and
put "unsubscribe MapInfo-L" in the message body.
_______________________________________________________________________
List hosting provided by Directions Magazine | www.directionsmag.com |
To unsubscribe, send e-mail to [EMAIL PROTECTED] and
put "unsubscribe MapInfo-L" in the message body.