how to synchronize the CursorTool across charts with ...
Posted: Fri Nov 21, 2003 7:00 pm
I need synchronize the CursorTool across charts with different axes types. One chart has the datetime axis property set to true and another has it set to false.
When both charts had datetime=true axes, the CursorTool worked perfectly. Changing one to datetime=false makes the CursorTool synchronization stop functioning.
My code is really simple. The only changing code is the datetime true or false property. If both axes agree, this code works as intended. Otherwise it doesn't work.
private void cursorTool0_Change(object sender, Steema.TeeChart.Tools.CursorChangeEventArgs e)
{
CursorSynchronize(sender as Steema.TeeChart.Tools.CursorTool);
}
private void CursorSynchronize(Steema.TeeChart.Tools.CursorTool primaryCursor)
{
cursorTool1.XValue = primaryCursor.XValue;
}
When both charts had datetime=true axes, the CursorTool worked perfectly. Changing one to datetime=false makes the CursorTool synchronization stop functioning.
My code is really simple. The only changing code is the datetime true or false property. If both axes agree, this code works as intended. Otherwise it doesn't work.
private void cursorTool0_Change(object sender, Steema.TeeChart.Tools.CursorChangeEventArgs e)
{
CursorSynchronize(sender as Steema.TeeChart.Tools.CursorTool);
}
private void CursorSynchronize(Steema.TeeChart.Tools.CursorTool primaryCursor)
{
cursorTool1.XValue = primaryCursor.XValue;
}