Page 1 of 1
TChartShape - adding Text
Posted: Wed Jan 08, 2014 12:06 pm
by 16468122
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.
Re: TChartShape - adding Text
Posted: Thu Jan 09, 2014 12:39 pm
by narcis
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.
Re: TChartShape - adding Text
Posted: Thu Jan 09, 2014 12:49 pm
by 16468122
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
Re: TChartShape - adding Text
Posted: Thu Jan 09, 2014 2:45 pm
by narcis
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.
Re: TChartShape - adding Text
Posted: Thu Jan 09, 2014 3:16 pm
by 16468122
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.
Re: TChartShape - adding Text
Posted: Thu Jan 09, 2014 4:20 pm
by narcis
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.