Hi
I have an eval copy of Teechart pro 8 active ex running on VB.net and I can't seem to add a bar to the series with the default color theme defined by the chart editor.
My code looks something like this:
Me.AxTChart1.Series(0).Add(50, "Test", System.Convert.ToUInt32(System.Drawing.ColorTranslator.ToOle(System.Drawing.Color.Empty)))
Me.AxTChart1.SetTheme(TeeChart.EChartTheme.ctWindowsXP, TeeChart.EColorPalette.cpWindowsXP)
Me.AxTChart1.Series(0).ColorEachPoint = True
I feel like I am really missing something here ...???
Adding Bar with default color values
-
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
- Contact:
Hi CarlS,
You could try this:
Hope this helps!
You could try this:
Code: Select all
Me.AxTChart1.Series(0).Add(50, "Test", clTeeColor)
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 |
Adding Bar with default color values
Hey Narcis
Thanks for the quick reply.
I did try that but my app keeps underlining the word and telling me that it's not declared.
Thanks
Carl
Thanks for the quick reply.
I did try that but my app keeps underlining the word and telling me that it's not declared.
Thanks
Carl
-
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
- Contact:
Hi Carl,
What about using 536870912 instead? You'll find all TeeChart's constants definitions in TeeChartDefines.h at C:\Program Files\Steema Software\TeeChart Pro v8 ActiveX Control\Examples\Visual C++.
What about using 536870912 instead? You'll find all TeeChart's constants definitions in TeeChartDefines.h at C:\Program Files\Steema Software\TeeChart Pro v8 ActiveX Control\Examples\Visual C++.
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 |
-
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
- Contact:
Hi Neutone,
I'm afraid not. If VB2008 doesn't accept TeeChart's constant definitions you'll have to use their values described at TeeChartDefines.h.
I'm afraid not. If VB2008 doesn't accept TeeChart's constant definitions you'll have to use their values described at TeeChartDefines.h.
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 |