Error: Adding Custom Legend

TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
Post Reply
Matt Venkat
Newbie
Newbie
Posts: 16
Joined: Wed May 18, 2005 4:00 am
Location: Sydney, Australia
Contact:

Error: Adding Custom Legend

Post by Matt Venkat » Thu May 03, 2012 5:36 am

Hi,

When I added Custom Legend from Editing Chart tools, I got the following error.

Image
http://oi45.tinypic.com/2l9o3ly.jpg

Something wrong with my installation?

Thanks in advance.

Yeray
Site Admin
Site Admin
Posts: 9612
Joined: Tue Dec 05, 2006 12:00 am
Location: Girona, Catalonia
Contact:

Re: Error: Adding Custom Legend

Post by Yeray » Fri May 04, 2012 10:37 am

Hi Matt,

I've been able to reproduce the problem here. I've added it to the defect list to be fixed (TV52016177).
Best Regards,
ImageYeray Alonso
Development & Support
Steema Software
Av. Montilivi 33, 17003 Girona, Catalonia (SP)
Image Image Image Image Image Image Please read our Bug Fixing Policy

Karlsson
Newbie
Newbie
Posts: 1
Joined: Tue Mar 01, 2011 12:00 am

Re: Error: Adding Custom Legend

Post by Karlsson » Wed Jan 16, 2013 12:19 pm

When can we expect to have a solution for this problem?
Is there any workaround to fix the problem temporarily?

Yeray
Site Admin
Site Admin
Posts: 9612
Joined: Tue Dec 05, 2006 12:00 am
Location: Girona, Catalonia
Contact:

Re: Error: Adding Custom Legend

Post by Yeray » Thu Jan 17, 2013 4:59 pm

Hello,

We've just fixed it for the next maintenance release.
If you are a Source Code customer, I can tell you the change to apply.
Best Regards,
ImageYeray Alonso
Development & Support
Steema Software
Av. Montilivi 33, 17003 Girona, Catalonia (SP)
Image Image Image Image Image Image Please read our Bug Fixing Policy

bosse
Newbie
Newbie
Posts: 1
Joined: Mon Nov 19, 2012 12:00 am

Re: Error: Adding Custom Legend

Post by bosse » Wed Jan 23, 2013 7:54 am

Hello,

I shall upgrade to be a source code customer so you can tell me how to do the changes.
Do you know the date for next maintenance release?

Thanks in advance,

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

Re: Error: Adding Custom Legend

Post by Narcís » Thu Jan 24, 2013 10:31 am

Hi bosse,
I shall upgrade to be a source code customer so you can tell me how to do the changes.
Sure, open TeeToolsGalleryDemos.pas, go to the TToolDemos.CreateGallery method and at its bottom implement TCustomLegendTool related code like this:

Code: Select all

  if tmp=TCustomLegendTool then
    with CreateChart(tmp,'Customizable legend grid',TBarSeries) do
    begin
      with Tools[0] as TCustomLegendTool do
      begin
        with Shape do
        begin
          RoundSize := 15;
          Pen.Width:= 2;
          Font.Style := [{$IFDEF FMX}TFontStyle.{$ENDIF}fsItalic];
          ShapeStyle:=fosRoundRectangle
        end;

        with Grid do
        begin
          RowCount := 2;
          
          {$IFNDEF FMX}
          ColCount := 1;
          RowHeights[0] := 20;
          RowHeights[1] := 20;
          ColWidths[0] := 70;
          {$ENDIF}

          Height := 40;
          Width := 70;

          {$IFDEF FMX}
          Cells[0,0]:='  Series 1';
          Cells[0,1]:='  Series 2';
          {$ELSE}
          Rows[0].Text := '  Series 1';
          Rows[1].Text := '  Series 2';
          {$ENDIF}
        end;
      end;
    end
    ;
which basically moves the line:

Code: Select all

          RowCount := 2;
before the following section.

Code: Select all

          {$IFNDEF FMX}
          ColCount := 1;
          RowHeights[0] := 20;
          RowHeights[1] := 20;
          ColWidths[0] := 70;
          {$ENDIF}
Do you know the date for next maintenance release?
A date hasn't been fixed yet. You should follow any of the Steema Software communication channels (this forum, Steema's home page, Steema's RSS feed, twitter or facebook) for new release announcements and what's implemented on them at the release notes accompanying the news.
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