I need to use some colors to set background etc. within the code. Where can I find the color definitions?
I need to do something like this:
mChart.GetGradient().SetMidColor(Yellow)
mChart.GetGradient().SetEndColor(White)
mChart.GetGradient().SetStartColor(Red)
What is the #define for Yellor or Red or White? Which header file do I have to include in my .cpp file to use the #defines?
Thanks.
using Colors in code
-
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
- Contact:
Hi nbp,
You can add:
However, using this you'll only be able to use clTeeColor constant which is each series default color. For other options you should add colors using RGB method, for example:
You can add:
Code: Select all
#include "TeeChartDefines.h"
Code: Select all
mChart.GetGradient().SetMidColor(RGB(255,0,0)) ;
Best Regards,
Narcís Calvet / Development & Support Steema Software Avinguda Montilivi 33, 17003 Girona, Catalonia Tel: 34 972 218 797 http://www.steema.com |
Instructions - How to post in this forum |