Hello,
I am running XProtect Corporate+ 2017 R3 and I do not get any valuable information inside of the mouse events of the class ImageViewerAddOn (i.e. MouseClickEvent, MouseClickEvent, MouseMoveEvent, MouseRightClickEvent). Precisely, the parameter with the mouse coordinates is always x=0 and y=0.
To make this support case simple and short, I extended the example project “SCOverlayImageTester” and added the following event handler to the class ImageViewerAddOn (within the method “Instance_NewImageViewerControlEvent”).
void imageViewerAddOn_MouseClickEvent(object sender, System.Windows.Forms.MouseEventArgs e)
{
string text = string.Format("Click position is: x={0}, y={1}" , e.X , e.Y );
System.Windows.Forms.MessageBox.Show(text);
}
Why is x=0 and y=0? Am I doing something wrong? Am I missing something out?
Thank you in advance.
Joe