V7.07 - Wrong color in Chart Previewer

TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
Post Reply
Kitry
Newbie
Newbie
Posts: 16
Joined: Tue May 16, 2006 12:00 am
Location: France

V7.07 - Wrong color in Chart Previewer

Post by Kitry » Fri Jun 23, 2006 9:18 am

I have a problem for controlling the colors in the Chart Previewer. Check this please.

With Delphi 6 (Update pack 2) :

- Create a new application
- Drop a Tchart component on the form (called Chart1)
- Drop a TChartPreviewer component on the form (called ChartPreviewer1)
- Double-click on the chart for opening design options. In the "Themes" panel, change the theme to "Windows XP".
- Drop a Tbutton component on the form (called Button1)
- copy the following code into the button :

Code: Select all

Chart1.Walls.Back.Color := clWhite;
Chart1.Color := clWhite;

Chart1.Gradient.Visible := false;
Chart1.Walls.Back.Gradient.Visible := false;

ChartPreviewer1.Execute;
- Run the application
- Click on the button
- The whole chart is becoming white, but the back panel remains partially gray in the Chart Previewer ???

It seems to appear only with the "Windows XP" theme and "Blues" theme.

Image
The chart first looking

Image
After clicking the button, the whole chart has a white background

Image
But there's still some gray in the Chart Previewer

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

Post by Narcís » Fri Jun 23, 2006 9:34 am

Hi Kitry,

Which TeeChart version are you using? It works fine for me here using TeeChart Pro v7.07, which is the latest version available.

Please notice that before installing TeeChart in Delphi 6 you need to have all available updates installed. This includes: Updated Pack 2, RTL Update 2 and RTL Update 3.
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

Kitry
Newbie
Newbie
Posts: 16
Joined: Tue May 16, 2006 12:00 am
Location: France

Post by Kitry » Fri Jun 23, 2006 9:48 am

Hi Narcis,

I'm currently using Teechart V7.07.

OS : Windows 2000 Pro SP4 french version (all patches till June'06). The only point is that the OS is running under a VMWare ESX Server. The OS is really clean as this VMWare image is dedicated for Delphi 6.

Delphi 6 US Entreprise : Update pack 2 + RTL2 + RTL3 (Teechart can't be installed without RTL2).

The compiled executable have the same behaviour under a native (non VMWare) Windows XP Pro SP2 (French version too).

It works fine with the "Business" theme and all others except "Windows XP" and "Blues".

Pep
Site Admin
Site Admin
Posts: 3295
Joined: Fri Nov 14, 2003 5:00 am
Contact:

Post by Pep » Mon Jun 26, 2006 11:22 am

Hi kitry,

yes, it seems to be a bug, I've added it on our defect list and a fix for it will be considered to inclusion for the next maintenance releases, in meantime a workaround could be to set a start and end color for the Chart gradient :

Code: Select all

Chart1.Gradient.StartColor:=clwhite;
Chart1.Gradient.EndColor:=clwhite;
ChartPreviewer1.Execute;

Kitry
Newbie
Newbie
Posts: 16
Joined: Tue May 16, 2006 12:00 am
Location: France

Post by Kitry » Mon Jun 26, 2006 12:52 pm

Ok, thanks for the tip :wink:
TeeChart Pro VCL/CLX V7.07 - Delphi 6 US Entreprise Edition with Update Pack 2 + RTL2 + RTL3 - W2k Pro SP2 French Version

Post Reply