Short question about ContextMenu

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

Dorwol
User
Posts: 275
Joined: Mon Aug 04, 2008 5:04 pm

Short question about ContextMenu

Post by Dorwol »

Hello,

to customize the Context Menu I can call "Skip" for "Notifications.ContextMenu.UserChoice" and show my own Menu. That's fine!

But how to disable Context Menu if the user clicks on the Ruler?
Corwin - Tracker Sup
User
Posts: 664
Joined: Tue Nov 14, 2006 12:23 pm

Re: Short question about ContextMenu

Post by Corwin - Tracker Sup »

Hi,

This will be possible in new build.
Thanks.
Dorwol
User
Posts: 275
Joined: Mon Aug 04, 2008 5:04 pm

Re: Short question about ContextMenu

Post by Dorwol »

Oh, I see, there is one place more, where the ContextMenu is still possible.

In the bottoms left corner:

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

Re: Short question about ContextMenu

Post by Stefan - PDF-XChange »

Confirmed that right-clicking in the page dimensions area opens a context menu.
(The ability to turn this one off will probably also get added with the new build, but will ask someone in development to confirm now)

Regards,
Stefan
Dorwol
User
Posts: 275
Joined: Mon Aug 04, 2008 5:04 pm

Re: Short question about ContextMenu

Post by Dorwol »

Tracker Supp-Stefan wrote:(The ability to turn this one off will probably also get added with the new build, but will ask someone in development to confirm now)
THX 4 feedback, I PRAY FOR THIS!
User avatar
Stefan - PDF-XChange
Site Admin
Posts: 19885
Joined: Mon Jan 12, 2009 8:07 am

Re: Short question about ContextMenu

Post by Stefan - PDF-XChange »

Hey Dorwol,

I just got confirmation that the feature will be available with the next build.

Best,
Stefan
Dorwol
User
Posts: 275
Joined: Mon Aug 04, 2008 5:04 pm

Re: Short question about ContextMenu

Post by Dorwol »

YEAH! :D
User avatar
John - Tracker Supp
Site Admin
Posts: 5223
Joined: Tue Jun 29, 2004 10:34 am

Re: Short question about ContextMenu

Post by John - Tracker Supp »

;)
If posting files to this forum - you must archive the files to a ZIP, RAR or 7z file or they will not be uploaded - thank you.

Best regards
Tracker Support
http://www.tracker-software.com
Dorwol
User
Posts: 275
Joined: Mon Aug 04, 2008 5:04 pm

Re: Short question about ContextMenu

Post by Dorwol »

Tracker Supp-Stefan wrote:I just got confirmation that the feature will be available with the next build.
Thanks again. But how exactly can I turn this off now?
User avatar
John - Tracker Supp
Site Admin
Posts: 5223
Joined: Tue Jun 29, 2004 10:34 am

Re: Short question about ContextMenu

Post by John - Tracker Supp »

The new release is anticpated on Monday (Pacific Time) - so I would strongly suggest you hold off until then.
If posting files to this forum - you must archive the files to a ZIP, RAR or 7z file or they will not be uploaded - thank you.

Best regards
Tracker Support
http://www.tracker-software.com
Dorwol
User
Posts: 275
Joined: Mon Aug 04, 2008 5:04 pm

Re: Short question about ContextMenu

Post by Dorwol »

John - Tracker Supp wrote:so I would strongly suggest you hold off until then.
:?: But the answer ("that the feature will be available with the next build") from Stefan is 3 years (!) old.
User avatar
Vasyl - PDF-XChange
Site Admin
Posts: 2445
Joined: Thu Jun 30, 2005 4:11 pm

Re: Short question about ContextMenu

Post by Vasyl - PDF-XChange »

Hi, Dorwol.
Thanks again. But how exactly can I turn this off now?
There is one way:

Code: Select all

eventhandler OnEvent(type, name,...)
{
   if (type == PXCVA_OnNamedNotify AND name == "Notifications.ContextMenu")
   {
      string prefix =  "Notifications.ContextMenu."
      string menuName;
      pdfv.GetProperty(prefix + "MenuName", out menuName);
      if (menuName == "MeasurementOptions")
             pdfv.SetProperty(prefix + "UserChoice", -1, 0); // skip this menu
   }
}
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.