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.
TChartShape - adding Text
-
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
- Contact:
Re: TChartShape - adding Text
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.
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 |
Instructions - How to post in this forum |
Re: TChartShape - adding Text
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
Many Thanks
- Attachments
-
- TChartShapeNoText.png (86.41 KiB) Viewed 9638 times
-
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
- Contact:
Re: TChartShape - adding Text
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.
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 |
Instructions - How to post in this forum |
Re: TChartShape - adding Text
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.
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
-
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
- Contact:
Re: TChartShape - adding Text
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:
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.
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;
Best Regards,
Narcís Calvet / Development & Support Steema Software Avinguda Montilivi 33, 17003 Girona, Catalonia Tel: 34 972 218 797 http://www.steema.com |
Instructions - How to post in this forum |