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.
Series MouseMove Event
-
- Guru
- Posts: 1603
- Joined: Fri Nov 15, 2002 12:00 am
Re: Series MouseMove Event
Hello,
You could use the MarksTip tool, e.g.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.
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 |
Re: Series MouseMove Event
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.
-
- Guru
- Posts: 1603
- Joined: Fri Nov 15, 2002 12:00 am
Re: Series MouseMove Event
Hello,
The MarksTip tool will work with multiple series, e.g.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.
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 |