Chart in visible area
Posted: Tue Jan 06, 2009 2:46 pm
How can i know if a chart is in viewable area of screen? I have several charts arranged in vertical manner and i am thinking that updating the cursor only the viewable charts will greatly reduce the lag in cursor movements. (Steema.TeeChart.TChart).IsAccessible property always return false for every chart when put in a loop.
The snippet of code is as follows:
Code:
The snippet of code is as follows:
Code:
Code: Select all
If CType(Panel2.Controls.Item(i), Steema.TeeChart.TChart).IsAccessible Then
CType(DestChart.Tools.Item(0), Steema.TeeChart.Tools.CursorTool).XValue = myXValue
End If