[bug]: Incorrect Series Title displayed in ChartListBox

TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
Post Reply
easyblue
Newbie
Newbie
Posts: 8
Joined: Mon Aug 29, 2005 4:00 am
Location: Shanghai, China

[bug]: Incorrect Series Title displayed in ChartListBox

Post by easyblue » Mon Aug 21, 2006 2:00 am

Hello

[Environment]
TeeChart V7.07, BDS2006 Ent+Sp2, Windows 2000.

[Description]
For Series created at run time, in some cases, the last series title is displayed incorrectly in ChartListBox using serie name instead.

I have made a demo project for the bug that ChartListBox display wrong Serie Title. Please tell me how I can submit the demo project.

[Step to reproducing error]
1. Build the demo, and run it.
2. click Init
3. Click Button1
4. Click the TeeChart at right panel, now ChartListBox has serie title correctly displayed (see pic1).
5. Click button2, now the last serie title is wrong (see pic2).
6. Click Button1 again, the last seris title is wrong (see pic3).

[work around]
Reset the ChartListBox->Chart each time when a series is added/deleted at run time as following.
// if (ChartListBox->Chart!=NULL) {
// TChart *pChart=(TChart*)ChartListBox->Chart;
// ChartListBox->Chart=NULL;
// ChartListBox->Chart=pChart;
// }

Narcís
Site Admin
Site Admin
Posts: 14730
Joined: Mon Jun 09, 2003 4:00 am
Location: Banyoles, Catalonia
Contact:

Post by Narcís » Mon Aug 21, 2006 10:43 am

Hi easyblue,

Please post the demo at news://www.steema.net/steema.public.attachments newsgroup.

Thanks in advance.
Best Regards,
Narcís Calvet / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

Post Reply