What Happened to OnGetMarkText for TchartShapes?

TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
Post Reply
mbruner63
Newbie
Newbie
Posts: 3
Joined: Thu Sep 10, 2009 12:00 am

What Happened to OnGetMarkText for TchartShapes?

Post by mbruner63 » Thu Sep 10, 2009 6:12 pm

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

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

Re: What Happened to OnGetMarkText for TchartShapes?

Post by Narcís » Mon Sep 14, 2009 7:20 am

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.
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

mbruner63
Newbie
Newbie
Posts: 3
Joined: Thu Sep 10, 2009 12:00 am

Re: What Happened to OnGetMarkText for TchartShapes?

Post by mbruner63 » Mon Sep 14, 2009 2:39 pm

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

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

Re: What Happened to OnGetMarkText for TchartShapes?

Post by Narcís » Mon Sep 14, 2009 2:46 pm

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.
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

mbruner63
Newbie
Newbie
Posts: 3
Joined: Thu Sep 10, 2009 12:00 am

Re: What Happened to OnGetMarkText for TchartShapes?

Post by mbruner63 » Mon Sep 14, 2009 3:05 pm

Thanks, that was my dumb mistake. I had read that post but didn't address the runtime libraries.

Post Reply