TChartShape - adding Text

TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
Post Reply
RA Team
Newbie
Newbie
Posts: 8
Joined: Wed Dec 18, 2013 12:00 am
Contact:

TChartShape - adding Text

Post by RA Team » Wed Jan 08, 2014 12:06 pm

Using TeeChart Pro v2013.09.131119 -

Using TChartShape - cannot see text at design time or run time. This worked in the Standard TeeChart with Delphi XE2.

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

Re: TChartShape - adding Text

Post by Narcís » Thu Jan 09, 2014 12:39 pm

Hi RA Team,

I'm not sure about which is your exact problem. Which text is not visible? An image of the problem or better a simple example project we can run "as-is" to reproduce it would be very helpful.

Thanks in advance.
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

RA Team
Newbie
Newbie
Posts: 8
Joined: Wed Dec 18, 2013 12:00 am
Contact:

Re: TChartShape - adding Text

Post by RA Team » Thu Jan 09, 2014 12:49 pm

see screenshot - I've added shape series and using the Text property adding text "Hello World" - and the nothing appears in the shape. If the same project is run in the standard teechart free with Delphi xe2 you see the text within the shape. Main code uses this series to create at runtime the shape and add text - worked with evaluation copy of teechart.

Many Thanks
Attachments
TChartShapeNoText.png
TChartShapeNoText.png (86.41 KiB) Viewed 9635 times

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

Re: TChartShape - adding Text

Post by Narcís » Thu Jan 09, 2014 2:45 pm

Hi RA Team,

Thanks for the image. Shape series text works fine for me. I can think of 2 things here:

1. By default, the font color is white. If you set shape's color to white you'll have to change Font.Color to some other color.
2. If the previous still doesn't work for you, it might be a text alignment problem or axes minimum and maximum settings. Try changing those properties.

If the problem persists please attach a simple example project we can run "as-is" to reproduce the problem.

Thanks in advance.
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

RA Team
Newbie
Newbie
Posts: 8
Joined: Wed Dec 18, 2013 12:00 am
Contact:

Re: TChartShape - adding Text

Post by RA Team » Thu Jan 09, 2014 3:16 pm

Hi thanks for the tips.

You are correct, I changed the shape colour and could see the text in white. Using the editing chart facility and selecting the series and text tab, the font colour is black, changing it to any other colour allows the text to be shown, however when the font is set to Black it doesn't appear. Is this a bug ? I've attached sample app for you to look at.
Attachments
TChart Test.zip
(83.14 KiB) Downloaded 555 times

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

Re: TChartShape - adding Text

Post by Narcís » Thu Jan 09, 2014 4:20 pm

Hi RA Team,

This looks like a bug to me so I have added it (ID533) to the bug list to be fixed. It works fine with other colors. Simple code to reproduce it:

Code: Select all

uses TeeShape;

procedure TForm1.FormCreate(Sender: TObject);
var
  Series1: TChartShape;
begin
  Series1:=TChartShape.Create(Self);
  Series1.FillSampleValues();
  Series1.Text.Text:='Hello World!';
  Series1.Font.Color:=clRed; //This works.
  Series1.Font.Color:=clBlack; //This doesn't work.
  Chart1.AddSeries(Series1);
end;
BTW, if you sign up in Steema Software's bugzilla you'll be able to be in the CC List and be automatically notified about changes in specific issues.
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