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 reason seems to be that as soon as an object is added to the cosmetic
layer, that layer is flagged as holding some objects, and the flag is not
removed when all the objects are deleted. It is not possible to “pack” that
layer directly. The flag seems to me removed only by one of the 2 requesters
mentioned above. Is ther a way to control that?

Too safe in one direction and absolutely crazy in the other because if you
pack a table that is the only one in a mapper, the table is withdrawn from
the mapper that closes down, and all there is in the cosmetic layer is lost
without warning.

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.

Reply via email to