ShortCut Problem

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

cfpalan
User
Posts: 4
Joined: Wed Jun 09, 2010 3:31 am

ShortCut Problem

Post by cfpalan »

When I use TCoPDFXCview(v.2.046) in my MainForm, it make the ShortCut(like ESC,F1,…F12,Ctrl+W…) in a TAction List no use.
How to solve this Problem.
User avatar
Stefan - PDF-XChange
Site Admin
Posts: 19913
Joined: Mon Jan 12, 2009 8:07 am

Re: ShortCut Problem

Post by Stefan - PDF-XChange »

Hello cfpalan,

Please update to the latest SDK release (2.0.52) as you are using a rather old one.

Best,
Stefan
cfpalan
User
Posts: 4
Joined: Wed Jun 09, 2010 3:31 am

Re: ShortCut Problem

Post by cfpalan »

I have updated the latest SDK to release (2.0.52).
But the ShortCuts (ESC,F1,…F12,Ctrl+W) don't work when the Focus is on TcoPDFXCView.

And even if the focus is on TcoPDFXCView,
the ShortCuts like "Delete","Ctrl+C","Ctrl+X","Ctrl+V" .... do not work too.

How do I slove this problem?
User avatar
Vasyl - PDF-XChange
Site Admin
Posts: 2448
Joined: Thu Jun 30, 2005 4:11 pm

Re: ShortCut Problem

Post by Vasyl - PDF-XChange »

Hi, cfpalan

It is known problem - it occurs because our main UI exists in separate process...
You may try to solve this problem using the new feature (52 build) - [Reference/Named Items/Simple Notifications/Global::CheckKey] in SDK-Help.

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.
cfpalan
User
Posts: 4
Joined: Wed Jun 09, 2010 3:31 am

Re: ShortCut Problem

Post by cfpalan »

Hi,Vasyl-Tracker Dev Team

I do a test in Delphi :
procedure TMForm.PDFXCviewEvent(ASender: TObject; Type_: Integer;
const Name: WideString;const DataIn: OleVariant; out DataOut: OleVariant;
Flags: Integer);
var ZoomValue:OleVariant;
begin
if (Type_=PXCVA_OnNamedNotify) and (Name='Global::CheckKey') then
begin
if DataIn=13 then
showmessage('Press Enter');
end;
end;

There is an error on "DateIn=13",
Could you tell me what is the correct representation ?

Best
regards.
Corwin - Tracker Sup
User
Posts: 664
Joined: Tue Nov 14, 2006 12:23 pm

Re: ShortCut Problem

Post by Corwin - Tracker Sup »

Hi cfpalan,

It looks like some problem with Variant data type translation in Delphi. In the next build we will add another way to retrieve info about keyboard messages.

in build (53) you will find the required information in the SDK-Help [Reference/Named Items/Objects/Notifications/Keyboard] section.

HTH.