Mouse click notifications for Scroll Bars...

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

Mouse click notifications for Scroll Bars...

Post by DSSavant »

Not a major request but it would be nice...

Currently the SDK gives notification messages for when the mouse is clicked in different areas of the viewer. This is great. One of the only places it does not give us a notification is in the scroll bars. The Context Menu that is displayed in the scroll bar area is, from what I can tell, somewhat standard Windows stuff. I would like to override this and display my own menu. Why you ask? Because my product manager likes being different. Seriously, we use Infragistics controls and their menus are a bit different than the standard windows.
User avatar
Vasyl - PDF-XChange
Site Admin
Posts: 2476
Joined: Thu Jun 30, 2005 4:11 pm

Re: Mouse click notifications for Scroll Bars...

Post by Vasyl - PDF-XChange »

Hi, DSSavant

I understand you. But no way in current realization for this.
This feature will be added into the new version V3.

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: Mouse click notifications for Scroll Bars...

Post by DSSavant »

FWIW, please do not hold up V3.0 for this feature. This is "optional" in my book.

Thanks again!
User avatar
John - Tracker Supp
Site Admin
Posts: 5225
Joined: Tue Jun 29, 2004 10:34 am

Re: Mouse click notifications for Scroll Bars...

Post by John - Tracker Supp »

pleasure ;)

and thanks for your understanding.
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
User avatar
Shaun Luttin
User
Posts: 20
Joined: Tue Apr 17, 2018 12:13 am

Re: Mouse click notifications for Scroll Bars...

Post by Shaun Luttin »

What is the status of this? Has the ability to customize the context menu made it to production?
User avatar
Vasyl - PDF-XChange
Site Admin
Posts: 2476
Joined: Thu Jun 30, 2005 4:11 pm

Re: Mouse click notifications for Scroll Bars...

Post by Vasyl - PDF-XChange »

Hi DSSavant.

Sorry for big delay with answer. This feature was added long time ago. You already are able to catch the R-Click notification over the scrollbars by:

Code: Select all


pdfCtl.SetProperty(name + "Notifications.Mouse.Filter", -1);
....
....
youreventhandler OnEvent(type, name, dataIn, dataOut, flags)
{
   if (type == PXCVA_OnNamedNotify)
   {
         if (name == "Notifications.Mouse")
         {
               int msg = 0;
               pdfCtl.GetProperty(name + ".msg", out msg);
               if (msg == WM_RBUTTONDOWN) 
               {
                   string target, targetEx;  
                   pdfCtl.GetProperty(name + ".TargetName", out target);
                   pdfCtl.GetProperty(name + ".TargetNameEx", out targetEx);
                   if (targetEx == "ScrollBar")   
                   {
                        pdfCtl.SetProperty(name + ".Skip", true);

                        // show own context menu here

                        return;
                   }   
              }
         }
    }
}
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.