Page 1 of 1
CursorTools are displayed outside the chart area
Posted: Tue Feb 06, 2007 3:43 pm
by 9639223
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.
Posted: Tue Feb 06, 2007 4:41 pm
by narcis
Hi rvs,
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;
}
}