Custom undo events?

If you are a C/C++/C# developer and have any questions about using our products from your application here is the place to post them.
Post Reply
beandog
Posts: 33
Joined: Wed Dec 14 2005

Custom undo events?

Post by beandog »

I am developing a wholly new user interface to the PDFCreactiveX control. So I have my own custom print, properties, page setup, etc. dialogs.

My question is, how do I make it so that users can undo the changes they make using my dialogs? Is there a way to insert a custom Undo level?



Ben Dilts
Joan
Amyuni Team
Posts: 2799
Joined: Wed Sep 11 2002
Contact:

Post by Joan »

Hello Ben,

You can use the Undo command to undo the last actions. Here is a VB code on calling the Undo function you can definitely translate it to C#

Code: Select all

With PDFCreactiveX1
    If .UndoLevels > 0 Then
       .Undo
       .Refresh
    Else
        MsgBox "No more actions to Undo"
        Exit Sub
    End If
    
 End With
Hope this helps.
Post Reply