avoid MP std save dialog?¿?

Nostradamus
09-08-2004, 03:13 AM
Hi, there...

Does anybody know if there's a possibilyty to deactivate the "Save" Dialog which pops up when you were working on a map and now are closing your app? I want to do this because mappoint saves this file in the local users 'personal files' folder using a predefined file name (map.ptm) and you can't do anything to change the path or filename. And there is another problem about it: After MP has saved the file automatically the path is set to the local users peronal files folder, which messes up all the other parts of my app :(
any suggestions would be higly appreciated...

Thx in advance

Eric Frost
09-08-2004, 06:48 AM
Hi Nostradamus,

See the Saved property of the Map object, a typical line in the code would be:

'Saved=True prevents the Save Map dialog from appearing when the map is closed.
objMap.Saved = True

best,
Eric

Nostradamus
09-08-2004, 06:56 AM
Wow, it's that easy, kewl... :roll:

I was looking for a solution to this problem for a few days now, but I couldn't solve it.

Thx anyway, helped me alot

Eric Frost
09-08-2004, 09:13 AM
No problem, glad to help!

What part of Germany are you from?

Eric

 
Web mp2kmag.com
mapforums.com