Add a custom button with custom behavior to a toolbar.

PDF-XChange Viewer SDK for Developer's
(ActiveX and Simple DLL Versions)

Moderators: TrackerSupp-Daniel, Tracker Support, Vasyl-Tracker Dev Team, Chris - Tracker Supp, Sean - Tracker, Ivan - Tracker Software, Tracker Supp-Stefan

Post Reply
User avatar
Shaun Luttin
User
Posts: 20
Joined: Tue Apr 17, 2018 12:13 am

Add a custom button with custom behavior to a toolbar.

Post by Shaun Luttin »

We would like to add a custom (not built-in) button like this:
Capture.PNG
We have already customized which built-in toolbars/buttons are visible. See viewtopic.php?f=36&t=30822 Now we would like to add a button that is not built-in.

What have we tried?

1. We looked at the JavaScript API, but the Viewer's JavaScript API does not include app.addToolbarButton.
2. We looked at Customize Toolbar > Toolbars > New, and added a new Toolbar, but were not able to add a custom button to this toolbar.
3. We looked at Customize Toolbar > Commands > New..., but the New... button is disabled.

How can we add a custom button to the toolbar?
User avatar
Tracker Supp-Stefan
Site Admin
Posts: 17823
Joined: Mon Jan 12, 2009 8:07 am
Location: London
Contact:

Re: Add a custom button with custom behavior to a toolbar.

Post by Tracker Supp-Stefan »

Hello Shaun Luttin,

The Viewer UI can not be customized via the SDK, and custom buttons can not be added.
If that UI is inside some other frame inside your project - you can add the extra buttons to your UI, and when clicked those could call and execute commands in the Viewer AX as needed.

Regards,
Stefan
Post Reply