In the old SDK there was and event
TCoPDFXCview.OnEvent
that I was able to implement to get event info passed to me when things changed in the editor.
I'm looking to implement that now in the new SDK.
I see that there is an event
TPXV_Control.OnEvent
but when I hook it up it doesn't seem to pass me anything. Do I need to do anything else to make this event fire? Register something?
Alternatively, I've also discovered the MainFrame event
Inst.MainFrm[0].OnEvent
which looks to be what I want but I don't know how to hook this one up in Delphi. It seems to be a part of
IUIX_ObjImpl
Which I'm not sure how to implement in Delphi. Could you show me how to do this in Delphi or point me in the right direction in getting the events I need.
Thanks.
--Jeff
Events
Moderators: TrackerSupp-Daniel, Tracker Support, Paul - Tracker Supp, Vasyl-Tracker Dev Team, Chris - Tracker Supp, Sean - Tracker, Ivan - Tracker Software, Tracker Supp-Stefan
Forum rules
DO NOT post your license/serial key, or your activation code - these forums, and all posts within, are public and we will be forced to immediately deactivate your license.
When experiencing some errors, use the IAUX_Inst::FormatHRESULT method to see their description and include it in your post along with the error code.
DO NOT post your license/serial key, or your activation code - these forums, and all posts within, are public and we will be forced to immediately deactivate your license.
When experiencing some errors, use the IAUX_Inst::FormatHRESULT method to see their description and include it in your post along with the error code.
-
- User
- Posts: 5522
- Joined: Fri Nov 21, 2014 8:27 am
- Contact:
Re: Events
Hello Jeff,
The Control's OnEvent method catches every event that you register for listening. See the FullDemo application for the RegisterEvents method where the pdfCtl.EnableEventListening method is being used.
Cheers,
Alex
The Control's OnEvent method catches every event that you register for listening. See the FullDemo application for the RegisterEvents method where the pdfCtl.EnableEventListening method is being used.
Cheers,
Alex
Subscribe at:
https://www.youtube.com/channel/UC-TwAMNi1haxJ1FX3LvB4CQ
https://www.youtube.com/channel/UC-TwAMNi1haxJ1FX3LvB4CQ
Re: Events
Ok. I now see the pdfCtl.EnableEventListening.
And I also found this page listing all the events.
https://sdkhelp.pdf-xchange.com/view/PXV:PXV_Events
In the past, you had an event that would tell me when the Documents.Count changed so I can know if a new document was opened. Do you have something similar? Is the above Event list exhaustive of all events?
--Jeff
And I also found this page listing all the events.
https://sdkhelp.pdf-xchange.com/view/PXV:PXV_Events
In the past, you had an event that would tell me when the Documents.Count changed so I can know if a new document was opened. Do you have something similar? Is the above Event list exhaustive of all events?
--Jeff
-
- User
- Posts: 5522
- Joined: Fri Nov 21, 2014 8:27 am
- Contact:
Re: Events
Hello Jeff,
For your case, you can probably use this event (which you can try doing in the FullDemo application):
Cheers,
Alex
For your case, you can probably use this event (which you can try doing in the FullDemo application):
Code: Select all
if (e.nEventID == nIDS[(int)IDS.e_document_initialized])
{
PDFXEdit.IPXV_Document Doc = (PDFXEdit.IPXV_Document)e.pFrom;
}
Alex
Subscribe at:
https://www.youtube.com/channel/UC-TwAMNi1haxJ1FX3LvB4CQ
https://www.youtube.com/channel/UC-TwAMNi1haxJ1FX3LvB4CQ