Page 1 of 1
ViewXY: Programatically highlight a cursor?
Posted: Thu Jul 17, 2014 7:22 pm
by greggorob64
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!
Re: ViewXY: Programatically highlight a cursor?
Posted: Fri Jul 18, 2014 8:05 am
by ArctionPasi
Unfortunately, there's no way to do that currently.
Series have SetHighlight and RemoveHighlight methods, but cursors don't.
Re: ViewXY: Programatically highlight a cursor?
Posted: Fri Jul 18, 2014 10:53 am
by ArctionPasi
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.
Re: ViewXY: Programatically highlight a cursor?
Posted: Fri Jul 18, 2014 12:01 pm
by greggorob64
I'll give this a try; thanks