Page 1 of 1

How to add a default color palette

Posted: Mon Feb 06, 2006 5:24 pm
by 8572663
I am using the TColorGridSeries and would like to add a new/custom color palatte like the pre-defined ones. I have tried calling SetDefaultColorPalette like in the example code Custom Palettes but this does not seem to work.

Can you tell me where in your code you define the defaults like Victorian or Pastels?

Iwould like to define an array of colors and add them to the ColorPalettes list then call ApplyPalette. I think this will give me the effect that I am loking for. Is this possible?

Is there a way to recompile the Tee7New application so that I can see examples of the new and fixed items in version 7.06? Is there new help for the latest version?

Posted: Wed Feb 08, 2006 10:33 am
by narcis
Hi leaf,
Can you tell me where in your code you define the defaults like Victorian or Pastels?
This is defined at Chart.pas.
Iwould like to define an array of colors and add them to the ColorPalettes list then call ApplyPalette. I think this will give me the effect that I am loking for. Is this possible?


Yes, you will find an example for that at the TeeChart features demo. The example can be found searching for "applypalette" and is called "Custom Palettes".
Is there a way to recompile the Tee7New application so that I can see examples of the new and fixed items in version 7.06? Is there new help for the latest version?
Yes, you just run the demo included with v7.06 or compile the demo project available at C:\Program Files\Steema Software\TeeChart 706 for Delphi 7\Examples\Features.

Regarding the help, there may be some small improvementes but no major changes.