Mouse click notifications for Scroll Bars...

PDF-XChange Viewer SDK for Developer's
(ActiveX and Simple DLL Versions)

Moderators: Tracker Support, TrackerSupp-Daniel, Chris - Tracker Supp, Vasyl-Tracker Dev Team, Sean - Tracker, Tracker Supp-Stefan, Ivan - Tracker Software

Post Reply
DSSavant
User
Posts: 219
Joined: Thu Jul 08, 2004 7:29 pm

Mouse click notifications for Scroll Bars...

Post by DSSavant » Tue Jan 12, 2010 4:59 pm

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-Tracker Dev Team
Site Admin
Posts: 1922
Joined: Thu Jun 30, 2005 4:11 pm
Location: Canada

Re: Mouse click notifications for Scroll Bars...

Post by Vasyl-Tracker Dev Team » Wed Jan 13, 2010 1:23 pm

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.
Vasyl Yaremyn
Tracker Software Products
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: 219
Joined: Thu Jul 08, 2004 7:29 pm

Re: Mouse click notifications for Scroll Bars...

Post by DSSavant » Wed Jan 13, 2010 4:55 pm

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

Thanks again!

John - Tracker Supp
Site Admin
Posts: 8202
Joined: Tue Jun 29, 2004 10:34 am
Location: Vancouver Island - Canada
Contact:

Re: Mouse click notifications for Scroll Bars...

Post by John - Tracker Supp » Wed Jan 13, 2010 7:48 pm

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 » Tue May 08, 2018 12:41 am

What is the status of this? Has the ability to customize the context menu made it to production?

User avatar
Vasyl-Tracker Dev Team
Site Admin
Posts: 1922
Joined: Thu Jun 30, 2005 4:11 pm
Location: Canada

Re: Mouse click notifications for Scroll Bars...

Post by Vasyl-Tracker Dev Team » Thu Jun 07, 2018 7:29 pm

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
Vasyl Yaremyn
Tracker Software Products
Project Developer

Please archive any files posted to a ZIP, 7z or RAR file or they will be removed and not posted.

Post Reply