Page 1 of 1

CustomTool for TChart

Posted: Mon Nov 17, 2008 5:06 am
by 14049736
Hi,
I have created a Custom tool for Tchart by deriving CursorTool.
I have placed RectangleTool inside my custom tool.
But when i add my custom tool to the tchart, the RectangleTool is not displayed.
Do i need to add the the rectangle tool also to the Chart.Tools Collection ??

Posted: Mon Nov 17, 2008 9:55 am
by narcis
Hi vijay,

Most likely your custom need should also add its RectangleTool to the chart, for example:

Code: Select all

			tChart1.Tools.Add(myRectangle);