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
First, I want to congratulate you for this good work. I have some questions :
1/ How can I change the text that's appear in the viewer whene I change the application language "you may open an existing document by double clicking here..." ?
2/ I am using the following code to hide the "Close active tab" button. It worked in the last release, but now, I must make a changes on the view ( ex : moving image,....) to see the button disabled. How can I hide or disable it ?
PDFView.SetProperty("Commands[#32937].state", "Offline", 0) // I tested this one
PDFView.SetProperty("Commands[#32937].state", "Disable", 0) // I tested this too, and both...
1. If you use localization file then you can modify it by using "PDF-XChange Viewer Languages Tool" which can be found here: https://www.pdf-xchange.com/Distrib ... ion_Tools/
"You may open an existing document by double clicking here..." is in the String\Labels category.
2. This is a bug in Viewer ActiveX. We will fix this as soon as possible.
Thanks.
Before running ViewerLangTool, please replace PDFXCview.exe in "PDF-X Vwr V2" folder with latest one.
By the way - by default in Viewer ActiveX this function (double clicking in background) is disabled.
To enable or disable it, you can set "General.AllowOpenDocumentByDblClick" property.
Corwin wrote:1. 2. This is a bug in Viewer ActiveX. We will fix this as soon as possible.
Can you inform me when this can be fixed ? You know, it is very important for our product to deny/hide all close buttons. Because we need to do a personnalized actions before closing document. Another alternative consist to intercept Closing Event to do some treatment.
In new build we will add new feature to deny closing document.
For now I may suggest you to work in SDI mode (without tabs) and disable all closing menu.
The problem is that in current realization you cannot fully disable the close button on the document tab.
Good news. We have added new document property "NoClose" which restricts document closing from Viewer ActiveX UI. In next few days we will try to give you a technical build.
PDFView.SetProperty("View.ShowTabCloseButtons", 0, 0) //to hide tab close buttons
PDFView.SetProperty("Commands[#33256].state", "Offline", 0) //close this tab
PDFView.SetProperty("Commands[#33255].state", "Offline", 0) //close all tabs but this
PDFView.SetProperty("Commands[#57682].state", "Offline", 0) //close window
PDFView.SetProperty("Commands[#32937].state", "Offline", 0) // close active tab
PDFView.SetProperty("Commands[#32937].state", "Disable", 0) // close active tab
PDFView.SetProperty("Commands[#33038].state", "Offline", 0) // close active tab
PDFView.SetProperty("Commands[#57601].state", "Offline", 0) // Open File
PDFView.SetProperty("Commands[#57602].state", "Offline", 0) // Close File