Atalasoft
Welcome to Atalasoft Community Sign in | Join | Help
in

Using AnnotationUndoManager class

Last post 21 Feb 2008, 1:33 PM by Glenn. 3 replies.
Sort Posts: Previous Next
  •  20 Feb 2008, 2:38 AM 13265

    Using AnnotationUndoManager class

    Hi,

         how do I imaplement my own UndoManager class for Annotation objects that contains only those Undo that I want and want to use that UndoManager class to perform Undo event on annotation objects used in application.

    Please if possible provide some sample application for that.

    Thanks

    Sandeep

  •  20 Feb 2008, 8:07 AM 13268 in reply to 13265

    Re: Using AnnotationUndoManager class

    There is no way to modify which actions are added into the undo manager.  You would need to write your own class to capture and store the undo changes you want.

    For example:  If you only want to store Move and Resize changes, then write a class that hooks into those events and stores the changes however you want so they can be undone later.


    Glenn Chittenden Jr.
    Atalasoft Development Team
  •  21 Feb 2008, 3:19 AM 13284 in reply to 13268

    Re: Using AnnotationUndoManager class

    Hi,

        I have imaplemented my AnnotationUndoManager class but not able to assign that to default Undomanager class of AnnotationController thats why I asked for sample code application to do that.Please reply soon..

    Thanks

    -Sandeep

     

  •  21 Feb 2008, 1:33 PM 13295 in reply to 13284

    Re: Using AnnotationUndoManager class

    You can't simply replace the class.  You will have to disable the undo feature by setting its Levels property to 0, then use your class instead.
    Glenn Chittenden Jr.
    Atalasoft Development Team
View as RSS news feed in XML