Hello Carter, > Is there any way to programmatically check if a workspace has > changed since it was opened. No easy way I believe. Workspaces are a little unusual since they are not a document in the traditional sense of Windows. They are more like a state snapshot of a user session, expressed in MB. You could try to detect if anything has been added/changed/deleted in cosmetic layers or for changes in layer control but this would be quite tedious. Alternatively you could save a temporary workspace and line-by-line compare with your chosen WOR file. All of these techniques involve wedging into MapInfo's basic features (replacing menu items and buttons with ones which call your own functions, "remembering things", and then invoke the standard MI functionality). It's all a bit messy, but possible. For some applications, it may be prudent to allow the user to save at the end of any session. Leaving the standard concept and behaviour of workspaces may not be a bad thing - no matter how much your app' changes MI Pro's presentation. Regards, Warren Vick Europa Technologies Ltd, U.K. http://www.europa-tech.com ---------------------------------------------------------------------- To unsubscribe from this list, send e-mail to [EMAIL PROTECTED] and put "unsubscribe MAPINFO-L" in the message body, or contact [EMAIL PROTECTED]
Re: MI How to check if a workspace has been modified before closing w/o
Warren Vick, Europa Technologies Ltd. Thu, 7 Oct 1999 11:27:02 -0700
- MI How to check if a workspace has b... Carter Hill
- Re: MI How to check if a worksp... Aditya
- Re: MI How to check if a worksp... Warren Vick, Europa Technologies Ltd.
- Re: MI How to check if a wo... Mats Elfstr�m
