modifying Tracker Viewer menus from C++/C#

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

Moderators: PDF-XChange Support, Daniel - PDF-XChange, Chris - PDF-XChange, Sean - PDF-XChange, Vasyl - PDF-XChange, Ivan - Tracker Software, Stefan - PDF-XChange

uMarko
User
Posts: 17
Joined: Mon Feb 06, 2012 6:15 pm

modifying Tracker Viewer menus from C++/C#

Post by uMarko »

I am starting with the FullDemo C++ code. I would like to display the Tracker Viewer control with modified menus. By default it displays:

File Edit View Document Comments Tools Windows Help

File
Open
Open from URL
Save
Save As
Save Copy As
New Document
Send by Email as ZIP
etc

I would like to
1) remove the “Document” menu item from the top menu bar
2) add a menu item of my own in the top menu bar, let’s call it “Utility”
3) remove “Open from URL”, “New Document”, “Send by Email as ZIP” from underneath the File menu.
4) add a menu item of my own in the File menu, let’s call it “Send by Email via Outlook”

Can this be done programmatically from C++ code (or from C# code)?
~Marko
User avatar
Stefan - PDF-XChange
Site Admin
Posts: 19883
Joined: Mon Jan 12, 2009 8:07 am

Re: modifying Tracker Viewer menus from C++/C#

Post by Stefan - PDF-XChange »

Hi Marko,

You can not add new menus to the control itself - but you could probably add those on top as part of your main application window.

As for modifying the existing menus in our Viewer - it would be easiest and fastest if you open a stand alone Viewer - make the modifications to the menus exactly as you want them, then export all settings to a data file, and then you can import those to the Viewer AX via the LoadSettings method (entry 2.1.1.1.6 in the Viewer AX manual).

Best,
Stefan
Tracker
uMarko
User
Posts: 17
Joined: Mon Feb 06, 2012 6:15 pm

Re: modifying Tracker Viewer menus from C++/C#

Post by uMarko »

Thanks Stefan, I will try to figure out how to use LoadSettings, will get back to you next week.
~ Marko
User avatar
Stefan - PDF-XChange
Site Admin
Posts: 19883
Joined: Mon Jan 12, 2009 8:07 am

Re: modifying Tracker Viewer menus from C++/C#

Post by Stefan - PDF-XChange »

Hi Marko,

Sure - do let us know if we can help further. Also there should be similar topics here in the forums so you might want to search for them.

Best,
Stefan