SeriesEventMarker label mouse event.

A forum dedicated to WinForms version of LightningChart Ultimate.

Moderator: Arction_LasseP

ehdrnsep
Posts: 48
Joined: Mon Jan 12, 2015 6:52 am

SeriesEventMarker label mouse event.

Post by ehdrnsep » Fri Jan 20, 2017 5:17 am

Hello.
I want to handle SeriesEventMark label is mouse click event.
But it does not fired event.
It is bug?

Code: Select all

            SeriesEventMarker cursorLegend = new SeriesEventMarker(series);
            cursorLegend.Symbol.Shape = Shape.Rectangle;
            cursorLegend.Symbol.GradientFill = GradientFillPoint.Solid;
            cursorLegend.Symbol.Color1 = series.LineStyle.Color;
            cursorLegend.Symbol.Antialiasing = false;
            cursorLegend.Label.Text = paramInfo.FullName;
            cursorLegend.Label.VerticalAlign = AlignmentVertical.Center;
            cursorLegend.VerticalPosition = SeriesEventMarkerVerticalPosition.YAxisTop;
            cursorLegend.HorizontalPosition = SeriesEventMarkerHorizontalPosition.AtXValue;
            cursorLegend.Offset.Y = -8;
            cursorLegend.MouseInteraction = true;
            cursorLegend.MoveByMouse = false;
            cursorLegend.ClipInsideGraph = false;

            cursorLegend.Label.Distance = 5;
            cursorLegend.Label.Font = this.chart.Font;
            cursorLegend.Label.Color = Color.Black;
            cursorLegend.Label.MouseInteraction = true;
            cursorLegend.Label.MouseHighlight = cursorLegend.MouseHighlight;
            cursorLegend.Label.MouseClick += CursorLegend_MouseClick;

Code: Select all

private void CursorLegend_MouseClick(object sender, MouseEventArgs e)
        {
            //not fire..
        }

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

Re: SeriesEventMarker label mouse event.

Post by ArctionPasi » Mon Jan 23, 2017 4:51 pm

Problem confirmed. We'll issue a fix soon. Apologies :oops:
LightningChart Support Team, PT

User avatar
ArctionNikolai
Posts: 38
Joined: Fri Feb 05, 2016 11:37 am
Location: Finland

Re: SeriesEventMarker label mouse event.

Post by ArctionNikolai » Tue Feb 07, 2017 1:41 pm

Problem seems to be fixed. Full answer is here: viewtopic.php?f=24&t=1056&p=3739#p3739
Nikolai Arsenov
Software developer
Arction Ltd
Microkatu 1, 70210 Kuopio, Finland