TLegendPaletteTool exception

TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
Post Reply
Sam F
Newbie
Newbie
Posts: 45
Joined: Wed Sep 10, 2008 12:00 am

TLegendPaletteTool exception

Post by Sam F » 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:

Code: Select all

TLegendPaletteTool* pLegendPalette = new TLegendPaletteTool(Chart1);
  pLegendPalette->ParentChart = Chart1;
And of course include the header

Code: Select all

#include <TeeLegendPalette.hpp>
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.

Yeray
Site Admin
Site Admin
Posts: 9587
Joined: Tue Dec 05, 2006 12:00 am
Location: Girona, Catalonia
Contact:

Re: TLegendPaletteTool exception

Post by Yeray » Fri Feb 17, 2012 6:33 pm

Hi,

You are right. I've added it to the defect list to be fixed asap (TV52016042).
Thanks for reporting it.
Best Regards,
ImageYeray Alonso
Development & Support
Steema Software
Av. Montilivi 33, 17003 Girona, Catalonia (SP)
Image Image Image Image Image Image Please read our Bug Fixing Policy

Post Reply