AnnotationXy MouseOver Event Behavior Question

A forum dedicated to WinForms version of LightningChart Ultimate.

Moderator: Arction_LasseP

plotter
Posts: 41
Joined: Thu Apr 06, 2017 2:29 am

AnnotationXy MouseOver Event Behavior Question

Post by plotter » Sat Sep 30, 2017 4:28 am

Hello Again,

I am using some annotations as touch buttons on a chart and need them to be in front of any Y Axis labels, scale, title, etc.
I am using MouseOverOn,Off,Up and Down events.
KeepVisible, ClipInsideGraph and Behind are false.
I am using ScreenCoordinates for Location and Size with RoundedRectangle style.

When I set RenderBehindAxis true, all events work as expected.
When I set RenderBehindAxis false, the MouseOverOn and Off don't seem to respond, the MouseUp and Down do work however.
All other chart mouseover events work fine..
Just changing RenderBehindAxis between true and false seems to affect the 'over' events functionality.

The finger cursor doesn't display when hovering over, but it does change to the finger while mouse down.

Is this normal behavior?

Thanks,
Heather


Edit: Continuing on this topic, If I do set RenderBehindAxis false and Behind false, and have mouseover events defined, if the annotation is placed over a Y Axis title or scale (label) shouldn't the mouseover event of the YAxis Title or Label be ignored and the annotation mouseover event be triggered instead?
(Currently the Y Axis events are active regardless what's on top of them. And the send to front, send to back methods don't seem to help either)

Thanks Again,
Heather

ArctionKestutis
Posts: 383
Joined: Mon Mar 14, 2016 9:22 am

Re: AnnotationXy MouseOver Event Behavior Question

Post by ArctionKestutis » Mon Oct 02, 2017 8:58 am

Hello Heather,

Thank you for the detailed, step-by-step instructions to reproduce the issue. Yes, this one seems like a bug. I will fill bug report and we will try to fix it as soon as possible.
Meanwhile you may use workaround: subscribe to _chart.MouseMove event and check Annotation.IsMouseOver().

Sorry for inconvenience.
All the best.

ArctionKestutis
Posts: 383
Joined: Mon Mar 14, 2016 9:22 am

Re: AnnotationXy MouseOver Event Behavior Question

Post by ArctionKestutis » Wed Oct 11, 2017 7:30 am

Annotation bug (missing mouse hover event then rendered in front of axis) is now fixed.
This fix will be included in the next release.

plotter
Posts: 41
Joined: Thu Apr 06, 2017 2:29 am

Re: AnnotationXy MouseOver Event Behavior Question

Post by plotter » Sun Oct 15, 2017 12:35 pm

Thank you,

I have a presentation Monday morning 10/16/17.
Is the fix in the just released update?
Or if not, is there a hotfix available?
Thanks as always,
Heather

ArctionKestutis
Posts: 383
Joined: Mon Mar 14, 2016 9:22 am

Re: AnnotationXy MouseOver Event Behavior Question

Post by ArctionKestutis » Mon Oct 16, 2017 6:00 am

Hello Heather,

We did not have new release yet. LightningChart's SDK is still in the process of fixing and testing.
Meanwhile you may use workaround: subscribe to _chart.MouseMove event and check Annotation.IsMouseOver().
Sorry for inconvenience.

All the best.