Page 1 of 1

Series MouseMove Event

Posted: Thu Sep 03, 2015 10:40 am
by 16071129
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 8689 times

Re: Series MouseMove Event

Posted: Thu Sep 03, 2015 11:37 am
by Christopher
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;
    }

Re: Series MouseMove Event

Posted: Thu Sep 03, 2015 11:57 am
by 16071129
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.

Re: Series MouseMove Event

Posted: Thu Sep 03, 2015 1:07 pm
by Christopher
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;
    }