V7.07 - Wrong color in Chart Previewer
Posted: 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 :
- 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.
The chart first looking
After clicking the button, the whole chart has a white background
But there's still some gray in the Chart Previewer
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;
- 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.
The chart first looking
After clicking the button, the whole chart has a white background
But there's still some gray in the Chart Previewer