Product : Engine, Version : 4.x, ArticleID : 41023424

HowTo : IsModified() is always true.

Article41023424
TypeHowTo
ProductEngine
Version4.x
Date Added2/2/2004
Submitted byHans BERENDE
Keywords

Subject

IsModified() is always true.

Summary

Is there a possibility to refine IsModified() so that not each and every action (Like zoom, pan, ...) is regarded a change?

I am using the 4.1.6.1029 engine with the UndoMode set to false.

Solution

You can get the IsModified value just before your code calls Zoom or Pan and after the command finishes use the SetModified property in order to set the isModified value as it was before the command

You can also use declare a public boolean in your project and use it as the IsModified flag, changing it in your code