Series MouseMove Event

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
Quant
Advanced
Posts: 142
Joined: Tue Dec 30, 2014 12:00 am

Series MouseMove Event

Post by Quant » Thu Sep 03, 2015 10:40 am

Hi,

We want to show Series Title as a ToolTip when mouse cursor gets positioned onto Series. But we haven't found event for Series.MouseMove event. Instead we get Series.MouseEnter event, which shows the tooltip but the position of tootip is not as per the Mouse Position.

Check the below screenshot for more explanation.
Tooltip.png
Tooltip.png (29.59 KiB) Viewed 2932 times

Christopher
Guru
Posts: 1270
Joined: Fri Nov 15, 2002 12:00 am

Re: Series MouseMove Event

Post by Christopher » Thu Sep 03, 2015 11:37 am

Hello,
Quant wrote:We want to show Series Title as a ToolTip when mouse cursor gets positioned onto Series. But we haven't found event for Series.MouseMove event. Instead we get Series.MouseEnter event, which shows the tooltip but the position of tootip is not as per the Mouse Position.
You could use the MarksTip tool, e.g.

Code: Select all

    Line series;
    MarksTip tool;
    private void InitializeChart()
    {
      tChart1.Aspect.View3D = false;
      series = new Line(tChart1.Chart);
      series.FillSampleValues();

      tool = new MarksTip(tChart1.Chart);
      tool.Series = series;
      tool.Style = MarksStyles.SeriesTitle;
    }
Best Regards,
Christopher Ireland / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Instructions - How to post in this forum

Quant
Advanced
Posts: 142
Joined: Tue Dec 30, 2014 12:00 am

Re: Series MouseMove Event

Post by Quant » Thu Sep 03, 2015 11:57 am

As shown in the screenshot we are having more than 1 series plotted on the Chart. Using this way we have to select teechart series first then we have to assign it to MarkTips tool, which is not as per the requirement. We need this to work on mousemove event of Series or TeeChart.

Christopher
Guru
Posts: 1270
Joined: Fri Nov 15, 2002 12:00 am

Re: Series MouseMove Event

Post by Christopher » Thu Sep 03, 2015 1:07 pm

Hello,
Quant wrote:As shown in the screenshot we are having more than 1 series plotted on the Chart. Using this way we have to select teechart series first then we have to assign it to MarkTips tool, which is not as per the requirement. We need this to work on mousemove event of Series or TeeChart.
The MarksTip tool will work with multiple series, e.g.

Code: Select all

   Line series, series1;
    MarksTip tool;
    private void InitializeChart()
    {
      tChart1.Aspect.View3D = false;
      series = new Line(tChart1.Chart);
      series.FillSampleValues();
      series1 = new Line(tChart1.Chart);
      series1.FillSampleValues();

      tool = new MarksTip(tChart1.Chart);
      //tool.Series = series;
      tool.Style = MarksStyles.SeriesTitle;
    }
Best Regards,
Christopher Ireland / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Instructions - How to post in this forum

Post Reply