Page 1 of 1

Notifications.Mouse.Filter = All is not surfacing mouse click events.

Posted: Tue May 08, 2018 1:44 am
by Shaun Luttin
We read the documentation on Mouse Notifications here: https://help.pdf-xchange.com/DEV/de ... ions_mouse

We have set this:

Code: Select all

viewer.SetProperty("Notifications.Mouse.Filter", "All");
viewer.OnEvent += On_ViewerEvent;
We have also this event handler.

Code: Select all

void On_ViewerEvent(object sender, _IPDFXCviewEvents_OnEventEvent e) {
    System.Diagnostics.Debug.WriteLine($"{e.type} {e.name}");
}
When we left click on the PDF, we were expecting to see "Notifications.Mouse" events. We are not seeing those. Instead, we are only seeing the following two events on left and right click.

Code: Select all

4 Global::FocusGained
4 Notifications.ContextMenu
How can we make "Notifications.Mouse" events show up in the event handler on left click?

Edit: We have read this topic: viewtopic.php?f=36&t=6321&hilit=Notific ... use.Filter and are wondering whether the PDF Viewer SDK build that we are using has a bug in the mouse notification events.

Re: Notifications.Mouse.Filter = All is not surfacing mouse click events.

Posted: Thu Jun 07, 2018 7:50 pm
by Vasyl-Tracker Dev Team
Hi, Shaun Luttin.

We cannot reproduce any problem with catching all mouse events when "Notifications.Mouse.Filter" is set to "All" (-1 - is equivalent value).
Can you provide simple example app to reproduce it? Also please check which version of our SDK you using. May be it is too old..

Cheers.