Page 1 of 1

[bug]: Incorrect Series Title displayed in ChartListBox

Posted: Mon Aug 21, 2006 2:00 am
by 9343159
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;
// }

Posted: Mon Aug 21, 2006 10:43 am
by narcis
Hi easyblue,

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

Thanks in advance.