Shortcuts do not work

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

mash_inc
User
Posts: 37
Joined: Tue Jan 25, 2011 3:11 pm

Shortcuts do not work

Post by mash_inc »

Hi,

we have the problem, that none of the shortcuts in the PDFXChange viewer work by default.
We are using the PDFXchange Viewer SDK 2.5.191 and run the Full Demo C# sample.
We proved that on 3 machines (Win7 32Bit, Win7 64Bit).

As a workarround we exported the settings from a well working stand alone PDF XChange Viewer and imported them into the full demo sample.
After that, everything seems to work fine. Nevertheless, we are not quite happy with the workarround ;-)

To analyze the problem we exported the "bad" default settings and the "good" stand alone settings into the registry.
After that we exported both registry branches into separate files to compare them (see attached file).

We found out, that the "bad" default settings contain "Shortcut" blocks like this:

Code: Select all

[HKEY_CURRENT_USER\Software\PDFXChangeFullDemoBad\CtrlSettings\Commands\0001\Shortcut]
"Type"=dword:00000000
"Modifiers"=dword:00000000
It seems that these blocks prevent the shortcuts to work. The settings that are OK do not contain any of these "Shortcut" blocks.

My conclusion is, that the default settings are not correct.
Is that a bug that needs to be fixed?

Kind regards,

Tino
You do not have the required permissions to view the files attached to this post.
User avatar
Vasyl - PDF-XChange
Site Admin
Posts: 2448
Joined: Thu Jun 30, 2005 4:11 pm

Re: Shortcuts do not work

Post by Vasyl - PDF-XChange »

Hi, Tino.

To allow all shortcuts call next code:

Code: Select all

ctrl.SetProperty("General.AllowAllAccelerators", 1, 0);
Best
Regards.
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.
mash_inc
User
Posts: 37
Joined: Tue Jan 25, 2011 3:11 pm

Re: Shortcuts do not work

Post by mash_inc »

Hi Vasyl,

come on, thats to easy. I need a more complex answer :lol:

....Problem solved.
....Shame on me. :oops:

Kind regards,

Tino
User avatar
Stefan - PDF-XChange
Site Admin
Posts: 19913
Joined: Mon Jan 12, 2009 8:07 am

Re: Shortcuts do not work

Post by Stefan - PDF-XChange »

Glad that this helped Tino,

And kudos to Vasyl!

Cheers,
Stefan