Make use of standard keyboard shortcuts

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

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 - PDF-XChange
Site Admin
Posts: 2445
Joined: Thu Jun 30, 2005 4:11 pm

Re: Make use of standard keyboard shortcuts

Post by Vasyl - PDF-XChange »

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.
PDF-XChange Co. LTD (Project Developer)

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