Page 1 of 1

Mouse click notifications for Scroll Bars...

Posted: Tue Jan 12, 2010 4:59 pm
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.

Re: Mouse click notifications for Scroll Bars...

Posted: Wed Jan 13, 2010 1:23 pm
by Vasyl-Tracker Dev Team
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.

Re: Mouse click notifications for Scroll Bars...

Posted: Wed Jan 13, 2010 4:55 pm
by DSSavant
FWIW, please do not hold up V3.0 for this feature. This is "optional" in my book.

Thanks again!

Re: Mouse click notifications for Scroll Bars...

Posted: Wed Jan 13, 2010 7:48 pm
by John - Tracker Supp
pleasure ;)

and thanks for your understanding.

Re: Mouse click notifications for Scroll Bars...

Posted: Tue May 08, 2018 12:41 am
by Shaun Luttin
What is the status of this? Has the ability to customize the context menu made it to production?

Re: Mouse click notifications for Scroll Bars...

Posted: Thu Jun 07, 2018 7:29 pm
by Vasyl-Tracker Dev Team
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