Make use of standard keyboard shortcuts

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
Stichel
User
Posts: 1
Joined: Tue Dec 07, 2010 2:24 pm

Make use of standard keyboard shortcuts

Post by Stichel »

Hello!

I am using PDF-XChange Viewer ActiveX SDK version 2.5.309.0 and want to make use of the standard keyboard shortcuts listed under https://help.pdf-xchange.com/EUM/de ... skin=2VIEW.

I tried these settings but didn't succeed:

Code: Select all

pdfViewCtrl.AllowAccelerators = true;
pdfViewCtrl.SetProperty("Notifications.Keyboard.Filter", "All", 0);
pdfViewCtrl.SetProperty("General.AllowAllAccelerators", 1, 0);
How can I activate standard keyboard shortcuts?

I furthermore tried to catch some events:

Code: Select all

private void pdfViewCtrl_OnEvent(object sender, AxPDFXCviewAxLib._IPDFXCviewEvents_OnEventEvent e)
{
   switch (e.type)
   {
      ...
      case (int)PDFXCviewAxLib.PXCVA_EventTypes.PXCVA_OnNamedNotify:
         if (e.name == "Global::CheckKey")
         { ... }
         else if (e.name == "Notifications.Keyboard")
         { ... }
         break;
   }
}
I never get a "Notifications.Keyboard" event. How can I react on a combination of keys pressed?

Thanks for any help!
User avatar
Vasyl-Tracker Dev Team
Site Admin
Posts: 2352
Joined: Thu Jun 30, 2005 4:11 pm
Location: Canada

Re: Make use of standard keyboard shortcuts

Post by Vasyl-Tracker Dev Team »

Hi, Stichel.

Please check if our SDK-examples working well for your case. For example I mean the code:
pdfViewCtrl.SetProperty("General.AllowAllAccelerators", 1, 0);
- working well on my machine when it called in our C# example from:
<Program Files>\Tracker Software\PDF-XChange Viewer SDK\Bin\AX_C#Examples\PDFViewerActiveXTestCS.exe

HTH.
Vasyl Yaremyn
Tracker Software Products
Project Developer

Please archive any files posted to a ZIP, 7z or RAR file or they will be removed and not posted.
Post Reply