Page 1 of 1

SeriesEventMarker label mouse event.

Posted: Fri Jan 20, 2017 5:17 am
by ehdrnsep
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..
        }

Re: SeriesEventMarker label mouse event.

Posted: Mon Jan 23, 2017 4:51 pm
by ArctionPasi
Problem confirmed. We'll issue a fix soon. Apologies :oops:

Re: SeriesEventMarker label mouse event.

Posted: Tue Feb 07, 2017 1:41 pm
by ArctionNikolai
Problem seems to be fixed. Full answer is here: viewtopic.php?f=24&t=1056&p=3739#p3739