Page 1 of 1

What Happened to OnGetMarkText for TchartShapes?

Posted: Thu Sep 10, 2009 6:12 pm
by 12054224
Hello,

I have just upgraded to the newest version of TeeChart. Unfortunately this library no longer supports the OnGetMarKText for TchartShapes. This is a very important part of my applications. Is there another way to update the Mark Text on Chartshapes or do I need to go back to a previous library?

Thanks,

Marty

Re: What Happened to OnGetMarkText for TchartShapes?

Posted: Mon Sep 14, 2009 7:20 am
by narcis
Hi Marty,

Thanks for reporting. I could reproduce that and checked this only occurs at designtime. At runtime you can assign the event like this:

Code: Select all

procedure TForm4.FormCreate(Sender: TObject);
begin
  Series1.OnGetMarkText:=Series2GetMarkText;
end;

procedure TForm4.Series2GetMarkText(Sender: TChartSeries; ValueIndex: Integer;
  var MarkText: string);
begin
  MarkText:=IntToStr(ValueIndex);
end;
I have also added this defect (TV52014401) as a high priority item in the bug list to be fixed for next releases.

Re: What Happened to OnGetMarkText for TchartShapes?

Posted: Mon Sep 14, 2009 2:39 pm
by 12054224
There seems to be several show stopper problems in this version. I am also getting this message:

Error reading Trace->Marks.Callout.Brush.Color Property Callout does not exist.

I also see the same problem in some of the Data fields for the TchartShape control.

Marty

Re: What Happened to OnGetMarkText for TchartShapes?

Posted: Mon Sep 14, 2009 2:46 pm
by narcis
Hi Marty,

In that case, it's most likely that your IDE is still pointing to old TeeChart references. You should update them as discussed here.

Re: What Happened to OnGetMarkText for TchartShapes?

Posted: Mon Sep 14, 2009 3:05 pm
by 12054224
Thanks, that was my dumb mistake. I had read that post but didn't address the runtime libraries.