button with custom event

PDF-XChange Editor SDK for Developers

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.
Post Reply
leemingxian
User
Posts: 14
Joined: Wed Oct 23, 2019 3:49 am

button with custom event

Post by leemingxian »

Hi
I am new to this forum and I have go through several thread about this topic
I am able to add custom button into Full Demo, however I am not sure how create the event that take place on the Ax_PXV_Control

For example, I can make a button to show open file dialog by adding following script in PDFEditorCommandHandler class

Code: Select all

  m_Inst.ShowOpenFilesDlg(); 
but the control never load the selected PDF though
Sorry that i am kind of slow learner, it will be great if someone can explain clearly (btw I am using C sharp running the Full Demo)

Thanks in advance for any help.
Sasha - Tracker Dev Team
User
Posts: 5522
Joined: Fri Nov 21, 2014 8:27 am
Contact:

Re: button with custom event

Post by Sasha - Tracker Dev Team »

Hello leemingxian,

The method that you are using returns the IPXV_OpenFilesDlgRes interface - you should extract the Names from it and then use them to open the documents via the https://sdkhelp.pdf-xchange.com/vi ... penDocFrom method.

Cheers,
Alex
Subscribe at:
https://www.youtube.com/channel/UC-TwAMNi1haxJ1FX3LvB4CQ
leemingxian
User
Posts: 14
Joined: Wed Oct 23, 2019 3:49 am

Re: button with custom event

Post by leemingxian »

Hello Alex,

Thanks for that Information.

Besides, I got some more questions to ask:
1. Is that possible for me to create a custom button for other functions (highlight, drawing line, rectangle etc.)?
2. If a draw a rectangle, is that possible for me to get the information about it (such as starting point, width, height), because I may like to store those information for future use

Thanks in advance for your reply.
Sasha - Tracker Dev Team
User
Posts: 5522
Joined: Fri Nov 21, 2014 8:27 am
Contact:

Re: button with custom event

Post by Sasha - Tracker Dev Team »

Hello leemingxian,

Here's a topic that would prove useful:
viewtopic.php?f=66&t=24171

Cheers,
Alex
Subscribe at:
https://www.youtube.com/channel/UC-TwAMNi1haxJ1FX3LvB4CQ
leemingxian
User
Posts: 14
Joined: Wed Oct 23, 2019 3:49 am

Re: button with custom event

Post by leemingxian »

Thanks for your reply.
I think that's all from me, you may close this thread.

Moreover if anyone want to get the list of annotation, following is the thread you may concern:
viewtopic.php?f=66&t=33031&p=135765&hil ... on#p135763
Sasha - Tracker Dev Team
User
Posts: 5522
Joined: Fri Nov 21, 2014 8:27 am
Contact:

Re: button with custom event

Post by Sasha - Tracker Dev Team »

:)
Subscribe at:
https://www.youtube.com/channel/UC-TwAMNi1haxJ1FX3LvB4CQ
Post Reply