Hello,
If you drop a Chart into a form and change the title font color to clBtnFace it drawn as yellow (latest TeeChart, Delphi XE6).
Regards
Bug with Chart Title Font color
Bug with Chart Title Font color
- Attachments
-
- Screenshot 2014-07-13 11.52.gif (17.73 KiB) Viewed 19271 times
Re: Bug with Chart Title Font color
Hello
It says:
Take a look at the TeeChart 2013 What's New document.johnnix wrote:If you drop a Chart into a form and change the title font color to clBtnFace it drawn as yellow (latest TeeChart, Delphi XE6).
It says:
Any color (pen, font, gradient, brush, etc) is now treated as a proper 32bit color with RGB and Alpha components.
The only limitation is pseudo-colors can’t be used (clBtnFace, clWindow, etc).
Best Regards,
Yeray Alonso Development & Support Steema Software Av. Montilivi 33, 17003 Girona, Catalonia (SP) | |
Please read our Bug Fixing Policy |
Re: Bug with Chart Title Font color
Ok, so since I need to custom draw the title how can I assign the same color as the background?
Re: Bug with Chart Title Font color
Hello,
Otherwise, please try to explain with more detail what are you trying to achieve.
I'm not sure to understand it. If you are making reference to something discussed in another thread, please kindly provide the link to that discussion.johnnix wrote:Ok, so since I need to custom draw the title how can I assign the same color as the background?
Otherwise, please try to explain with more detail what are you trying to achieve.
Best Regards,
Yeray Alonso Development & Support Steema Software Av. Montilivi 33, 17003 Girona, Catalonia (SP) | |
Please read our Bug Fixing Policy |
Re: Bug with Chart Title Font color
Hello Yeray,
If you look at the screenshot you see that I need set the color of the title to match the color of the background, since the background color is clBtnFace how can I assign this to the title?
Regards
If you look at the screenshot you see that I need set the color of the title to match the color of the background, since the background color is clBtnFace how can I assign this to the title?
Regards
Re: Bug with Chart Title Font color
Hello,
This seems to work fine for me here:
This seems to work fine for me here:
Code: Select all
procedure TForm1.FormCreate(Sender: TObject);
begin
Chart1.Gradient.Visible:=false;
Chart1.Walls.Back.Gradient.Visible:=false;
Chart1.Walls.Back.Color:=clWhite;
Chart1.Title.Font.Size:=20;
Chart1.Title.Font.Color:=Chart1.Color;
end;
Best Regards,
Yeray Alonso Development & Support Steema Software Av. Montilivi 33, 17003 Girona, Catalonia (SP) | |
Please read our Bug Fixing Policy |
Re: Bug with Chart Title Font color
Hello,
Attached is a project file, the clWhite button works fine but the clBtnFace button turns the font color to yellow.
Regards
Attached is a project file, the clWhite button works fine but the clBtnFace button turns the font color to yellow.
Regards
- Attachments
-
- Project1.zip
- (6.37 KiB) Downloaded 1087 times
Re: Bug with Chart Title Font color
Hi,
Unfortunately, the "A" in RBGA is used to identify the special colors in VCL (clNone, clDefault, clBtnFace,...) so it can't be used for the transparency.
However, you can convert these special colors to regular colors using ColorToRGB function:
Unfortunately, the "A" in RBGA is used to identify the special colors in VCL (clNone, clDefault, clBtnFace,...) so it can't be used for the transparency.
However, you can convert these special colors to regular colors using ColorToRGB function:
Code: Select all
Chart1.Color := ColorToRGB(clBtnFace);
Best Regards,
Yeray Alonso Development & Support Steema Software Av. Montilivi 33, 17003 Girona, Catalonia (SP) | |
Please read our Bug Fixing Policy |
Re: Bug with Chart Title Font color
Hello Yeray,
That did the trick, thank you very much!
Regards
That did the trick, thank you very much!
Regards