I do not get any valuable information inside of the mouse events of the class ImageViewerAddOn ().

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

Same here with a plugin I’m currently writing. MouseMove on the ImageViewerAddOn always sends location.x = 0 and location.y=0.

I have reported this to Milestone Development as a bug now. I wish I had seen and picked it up back in October.

A fix for this issue will be in Smart Client 2018R2.