Function Series show no available source series

TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
Post Reply
Mark
Newbie
Newbie
Posts: 3
Joined: Fri Jan 21, 2005 5:00 am

Function Series show no available source series

Post by Mark » Wed Aug 03, 2005 3:52 pm

Hi:

I have a chart component (TMyChart = class(TCustomDBChart)) and CDS (TMyDataset = class(TClientDataSet)) on a form. At runtime I can add series based on the TMyDataset to TMyChart. I can also add function type series to TMyChart. In other words, all is well.

Now when I close the form, I stream out TMyChart. When the form is re-opened, the TMyChart chart is streamed back in, the TMyDataset is reloaded and the TMyDataset based series in the chart are redrawn. But, the function type series are not redrawn. The series are defined, but the series source for the function series is blank, and no series are shown as being available (even though the TMyDataset series were 'successfully' streamed in).

Any ideas would be appreciated.

Thanks,
Mark

Pep
Site Admin
Site Admin
Posts: 3299
Joined: Fri Nov 14, 2003 5:00 am
Contact:

Post by Pep » Thu Aug 04, 2005 9:56 am

Hi Mark,

which teeChart pro version are you using ?
Could you please give me the code you're using to reproduce it ?

Mark
Newbie
Newbie
Posts: 3
Joined: Fri Jan 21, 2005 5:00 am

Post by Mark » Thu Aug 04, 2005 5:08 pm

Hi:

I have TeeChart Pro 7.04.

I have a simple project that reproduces the problem. I have determined that the problem occurs when I use a customized TDBChart. On my form I create the chart at runtime because I override IsValidDataSource to allow only datasets on the current form as series sources:

chart := TExpChart.Create(self);
chart.Parent := self;

if I change my code to

chart := TDBChart.Create(self);
chart.Parent := self;

everything works (except now the user can use datsets that might not be available later).

I have a smaple projetc I can send if you let me know the best way to send.

Thanks,
Mark

Pep
Site Admin
Site Admin
Posts: 3299
Joined: Fri Nov 14, 2003 5:00 am
Contact:

Post by Pep » Fri Aug 05, 2005 1:27 am

Hi Mark,

yes please, send me it directly to pep@steema.com and I'll take a look.

Post Reply