New/delete object event for cut, paste, undo, redo ...

The PDF Creator enables you to create secure PDF documents and to view, print and process existing PDF documents.
If you have any questions about the installation and usage of the PDF Creator please post them here.
Post Reply
brucepan
Posts: 3
Joined: Wed Jul 26 2006

New/delete object event for cut, paste, undo, redo ...

Post by brucepan »

Hello,

I am trying building app with pdf creator 2.0. I want the app triggered while cut, paste, undo, redo are being operated in the pdf creator activex control. But I can't get these events. Is there a way to get a response when a object is being deleted or created by above actions?

Thank you very much,
Bruce
Jose
Amyuni Team
Posts: 553
Joined: Tue Oct 01 2002
Contact:

Post by Jose »

Hello,

You should look at the BeforeDelete and SelectedObjectChange events.

-The BeforeDelete event is fired before deleting an object.

-The SelectedObjectChange event is fired whenever the user selects another object on the current page.

Hope this helps?
brucepan
Posts: 3
Joined: Wed Jul 26 2006

no avail

Post by brucepan »

Those two events are never fired except I create or delete objects manually.

Thanks
Jose
Amyuni Team
Posts: 553
Joined: Tue Oct 01 2002
Contact:

Post by Jose »

Hello,

Can you elaborate on how you tried to trap these events?
brucepan
Posts: 3
Joined: Wed Jul 26 2006

Post by brucepan »

OK.

Create a new object, select the object and then put breakpoints on SelectedObjectChange,NewObject,BeforeDelete events.

Press Ctrl+X to cut it, SelectedObjectChange and BeforeDelete events are not fired.
Press Ctrl+V to paste it, only SelectedObjectChange fired, but no NewObject event.
Press Ctrl+Z to undo, SelectedObjectChange or NewObject or BeforeDelete events is not fired.
Post Reply