ViewXY: Programatically highlight a cursor?

A forum dedicated to WinForms version of LightningChart Ultimate.

Moderator: Arction_LasseP

greggorob64
Posts: 183
Joined: Tue Mar 18, 2014 2:55 pm

ViewXY: Programatically highlight a cursor?

Post by greggorob64 » Thu Jul 17, 2014 7:22 pm

I have two charts on the same screen (image below), and the crosshairs always line up (i manually set them when the value changes). Is there a way to make them both highlight when i mouseover one of them?

I got as far as adding MouseOver\MouseOff events, but i don't know how to programatically begin a mouse highlight.

Thanks!
Image

User avatar
ArctionPasi
Posts: 1366
Joined: Tue Mar 26, 2013 10:57 pm
Location: Finland

Re: ViewXY: Programatically highlight a cursor?

Post by ArctionPasi » Fri Jul 18, 2014 8:05 am

Unfortunately, there's no way to do that currently.

Series have SetHighlight and RemoveHighlight methods, but cursors don't. :|
LightningChart Support Team, PT

User avatar
ArctionPasi
Posts: 1366
Joined: Tue Mar 26, 2013 10:57 pm
Location: Finland

Re: ViewXY: Programatically highlight a cursor?

Post by ArctionPasi » Fri Jul 18, 2014 10:53 am

There's a way, kind of... change the cursor's color. You can blend the original color to a highlight color:

cursor.LineStyle.Color = ChartTools.CalcGradient(cursor.LineStyle.Color, DefaultColors.SimpleHighlightGradient, 50); or other preferred color.
LightningChart Support Team, PT

greggorob64
Posts: 183
Joined: Tue Mar 18, 2014 2:55 pm

Re: ViewXY: Programatically highlight a cursor?

Post by greggorob64 » Fri Jul 18, 2014 12:01 pm

I'll give this a try; thanks