When CursorTool is displayed, and you move the chart (using right mouse button) in horizontal direction, CursorTool continues to display outside the chart field.
TeeChart v2.0.2586.24039 for .Net 2.0, from Jan, 30.
CursorTools are displayed outside the chart area
-
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
- Contact:
Hi rvs,
You can solve this problem doing something like this:
You can solve this problem doing something like this:
Code: Select all
private void tChart1_AfterDraw(object sender, Steema.TeeChart.Drawing.Graphics3D g)
{
UpdateCursor();
}
private void UpdateCursor()
{
if ((cursorTool1.XValue < tChart1.Axes.Bottom.Minimum) || (cursorTool1.XValue > tChart1.Axes.Bottom.Maximum)
|| (cursorTool1.YValue < tChart1.Axes.Left.Minimum) || (cursorTool1.YValue > tChart1.Axes.Left.Maximum))
{
cursorTool1.Active = false;
}
else
{
cursorTool1.Active = true;
}
}
Best Regards,
Narcís Calvet / 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 |