Page 1 of 1

V7.07 - Wrong color in Chart Previewer

Posted: Fri Jun 23, 2006 9:18 am
by 9346307
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

Posted: Fri Jun 23, 2006 9:34 am
by narcis
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.

Posted: Fri Jun 23, 2006 9:48 am
by 9346307
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".

Posted: Mon Jun 26, 2006 11:22 am
by Pep
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;

Posted: Mon Jun 26, 2006 12:52 pm
by 9346307
Ok, thanks for the tip :wink: