Even on a Saturday, one can ask a question and have enough to post a
summary!
The question ============
In a MBX, if I use �Run Menu Command 810� (Clear cosmetic objects) I get a
confirmation requester. As I do not want to see it, I simple �Delete from
COSM� where cosm=layerinfo(frontwindow(),0,1) and that gives me a �quiet�
run.
However when I want to close the mapper, there is a requester about unsaved
objects in the map, and I have to manually close that requester. It seems
that if I avoid one during the run, I get another afterwards.
The solution =============
1- software
Rollback Table WindowInfo(FrontWindow(), 10)
where 10 = WIN_INFO_TABLE, the name of the cosmetic layer in that case
2- flagware
Uncheck �Warning prior to loss of Cosmetic Objects� in menu Options |
Preferences | MapWindow
The solution 2 may not be the ideal for an application that may be �widely�
used and can be perceived as too drastic, but it works
All my thanks to Bill Thoen and Trey Patillo
Jacques Paris
e-mail [EMAIL PROTECTED]
MapBasic-MapInfo support http://www.paris-pc-gis.com
_______________________________________________________________________
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.