How to prevent [Ctrl]+[Tab] from showing viewer tab list?

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

DSSavant
User
Posts: 216
Joined: Thu Jul 08, 2004 7:29 pm

How to prevent [Ctrl]+[Tab] from showing viewer tab list?

Post by DSSavant »

The subject pretty much says it all.

When the user has given focus to the viewer within my application, they will press [Ctrl]+[Tab] twice and get the viewer's popup display of which tabs are active such that they can activate a different tab.

How do I turn this off?

I have:
-- embedded the viewer within my product,
-- set the viewer to Single Document mode ("General.DocumentInterface", "SET", 1),
-- turned off all accelerators (Viewer.AllowAccelerators = false)

If I'm telling the viewer to be in Single Document mode, then I should never even see this popup.

Any ideas are appreciated.
User avatar
Vasyl - PDF-XChange
Site Admin
Posts: 2445
Joined: Thu Jun 30, 2005 4:11 pm

Re: How to prevent [Ctrl]+[Tab] from showing viewer tab list

Post by Vasyl - PDF-XChange »

Hi, DSSavant.

When (Viewer.AllowAccelerators==false) or (General.DocumentInterface==SDI) then control shouldn't display this documents navigator - we will fix this bug in the next build.

Currently you may try to use the next workaround:

Code: Select all

eventhandler OnEvent(type, name, dataIn, out dataOut)
{
     if ((type == PXCVA_OnNamedNotify) AND (name == "Notifications.Keyboard"))
     {
           int code;
           ctrl.GetProperty("Notifications.Keyboard.Code", out code);
           if ((code == VK_TAB) && IsCtrlKeyPressed())
           {
                ctrl.SetProperty("Notifications.Keyboard.Skip", "true");
           }
     }
}
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.
DSSavant
User
Posts: 216
Joined: Thu Jul 08, 2004 7:29 pm

Re: How to prevent [Ctrl]+[Tab] from showing viewer tab list

Post by DSSavant »

I tried the work around given and found it did Not work. Good try though.

Please let me know when the next build will be ready or a time frame when I should check back. Thanks!
User avatar
Paul - PDF-XChange
Site Admin
Posts: 7362
Joined: Wed Mar 25, 2009 10:37 pm

Re: How to prevent [Ctrl]+[Tab] from showing viewer tab list

Post by Paul - PDF-XChange »

Hi DSSavant

we expect the next build within the next 2 weeks, possibly sooner. Would you like to be notified when it is ready?
Best regards

Paul O'Rorke
PDF-XChange Support
http://www.pdf-xchange.com
DSSavant
User
Posts: 216
Joined: Thu Jul 08, 2004 7:29 pm

Re: How to prevent [Ctrl]+[Tab] from showing viewer tab list

Post by DSSavant »

I would love to be notified, please and thank you.
User avatar
Paul - PDF-XChange
Site Admin
Posts: 7362
Joined: Wed Mar 25, 2009 10:37 pm

Re: How to prevent [Ctrl]+[Tab] from showing viewer tab list

Post by Paul - PDF-XChange »

sure - I can do that. I will both post here and send an email to the address you have on this forum account, the dan@ one...

regards
Best regards

Paul O'Rorke
PDF-XChange Support
http://www.pdf-xchange.com
User avatar
Vasyl - PDF-XChange
Site Admin
Posts: 2445
Joined: Thu Jun 30, 2005 4:11 pm

Re: How to prevent [Ctrl]+[Tab] from showing viewer tab list

Post by Vasyl - PDF-XChange »

Hi, DSSavant.

I forget say about one essential item - you should enable keyboard-events before:

Code: Select all

ctrl.SetProperty("Notifications.Keyboard.Filter", "Down", 0);
Look to sdk-help for more info...

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.
DSSavant
User
Posts: 216
Joined: Thu Jul 08, 2004 7:29 pm

Re: How to prevent [Ctrl]+[Tab] from showing viewer tab list

Post by DSSavant »

Tried with setting the additional filter with the same result --> When holding down the [Ctrl] key and then tapping [Tab] twice, the "tab selection" dialog will appear.
User avatar
Vasyl - PDF-XChange
Site Admin
Posts: 2445
Joined: Thu Jun 30, 2005 4:11 pm

Re: How to prevent [Ctrl]+[Tab] from showing viewer tab list

Post by Vasyl - PDF-XChange »

Hi, DSSavant.
Tried with setting the additional filter with the same result --> When holding down the [Ctrl] key and then tapping [Tab] twice, the "tab selection" dialog will appear.
I tried my workaround - it working correctly, I cannot reproduce any issue. Please check your code again... Maybe the "IsCtrlKeyPressed()" is not working as it should?

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.
DSSavant
User
Posts: 216
Joined: Thu Jul 08, 2004 7:29 pm

Re: How to prevent [Ctrl]+[Tab] from showing viewer tab list

Post by DSSavant »

I have it working properly in the Full Demo SDK code using the code you have given. I obviously am missing something in my own application that I need to hunt down. Thanks.
User avatar
Paul - PDF-XChange
Site Admin
Posts: 7362
Joined: Wed Mar 25, 2009 10:37 pm

Re: How to prevent [Ctrl]+[Tab] from showing viewer tab list

Post by Paul - PDF-XChange »

Hi DSSavant,

OK - let us know OFC if there is anything more you need here.

:-)
Best regards

Paul O'Rorke
PDF-XChange Support
http://www.pdf-xchange.com
DSSavant
User
Posts: 216
Joined: Thu Jul 08, 2004 7:29 pm

Re: How to prevent [Ctrl]+[Tab] from showing viewer tab list

Post by DSSavant »

Got it working. Thanks again.
User avatar
Paul - PDF-XChange
Site Admin
Posts: 7362
Joined: Wed Mar 25, 2009 10:37 pm

Re: How to prevent [Ctrl]+[Tab] from showing viewer tab list

Post by Paul - PDF-XChange »

most excellent! :D
Best regards

Paul O'Rorke
PDF-XChange Support
http://www.pdf-xchange.com