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]

Reply via email to