TLegendPaletteTool exception
Posted: Wed Feb 15, 2012 11:35 pm
I'm using C++Builder XE with TChart v2011.04.41118.
Create a project with a chart. In the constructor put:
And of course include the header
Run the project. Click on the chart. You will get 'EInvalidOperation with message 'Control has no parent window'.
In the debugger you can see it is trying to run some TLegendPaletteTool ChartMouseEvent.
I think this is recently introduced - I recently upgraded from v2011.03.30407 and I don't think this was happening.
Create a project with a chart. In the constructor put:
Code: Select all
TLegendPaletteTool* pLegendPalette = new TLegendPaletteTool(Chart1);
pLegendPalette->ParentChart = Chart1;
Code: Select all
#include <TeeLegendPalette.hpp>
In the debugger you can see it is trying to run some TLegendPaletteTool ChartMouseEvent.
I think this is recently introduced - I recently upgraded from v2011.03.30407 and I don't think this was happening.