Hello,
Different cursors for chart and FastLine series are necessary to us. We set properties chart.cursor and series.cursor, but when mouse moves over series and leaves it, cursor of chart does not change to chart.cursor. What can you recommend?
Best Regards,
Yuri
Different cursors for chart and FastLine series
Re: Different cursors for chart and FastLine series
Hello Yuri,
I suggest you do something as next code, where I have used MouseMove to change the mouse cursor of Chart:
Can you tell us, if previous code works as you want?
I hope will helps.
Thanks,
I suggest you do something as next code, where I have used MouseMove to change the mouse cursor of Chart:
Code: Select all
public Form1()
{
InitializeComponent();
InitializeChart();
}
Steema.TeeChart.Styles.FastLine fast1;
private void InitializeChart()
{
fast1 = new FastLine(tChart1.Chart);
fast1.FillSampleValues();
tChart1.MouseMove += new MouseEventHandler(tChart1_MouseMove);
}
void tChart1_MouseMove(object sender, MouseEventArgs e)
{
if (fast1.Clicked(e.X, e.Y) != -1)
{
tChart1.Cursor = Cursors.Hand;
}
else
{
tChart1.Cursor = Cursors.Arrow;
}
}
I hope will helps.
Thanks,
Best Regards,
Sandra Pazos / 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: Different cursors for chart and FastLine series
Hello, Sandra
Thanks, this method is working.
Best Regards,
Yuri
Thanks, this method is working.
Best Regards,
Yuri