Hello
I use visual C++ and TChart 6,I would like to get "NoGrid" option from the C++ code,I don't find the way to do that
Thanks for help
Pascal
Get Nogrid Option with a ColorGrid
-
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
- Contact:
Hello Pade,
You have to include the includes:
and the code:
You have to include the includes:
Code: Select all
#include "TeeChartDefines.h"
#include "Series.h"
#include "Axis.h"
#include "Axes.h"
#include "Pen.h"
Code: Select all
m_Chart1.GetAxis().GetLeft().GetGridPen().SetVisible(false);
m_Chart1.GetAxis().GetBottom().GetGridPen().SetVisible( false);
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 |
Pb with Nogrid option in ColorGrid Chart
Hello Narcis
I've tried the code but it seems that it doesn't do what I would like
(may there is an other declaration)
the chart I want to get is (VBexample:Chart->Add->ColorGrid->NoGrid)
when I add the two lines you wrote it still draw vertical and horizontal line in the ColorGrid
Thank for Help
Pascal
I've tried the code but it seems that it doesn't do what I would like
(may there is an other declaration)
the chart I want to get is (VBexample:Chart->Add->ColorGrid->NoGrid)
when I add the two lines you wrote it still draw vertical and horizontal line in the ColorGrid
Thank for Help
Pascal
Hi Pascal,
to hide the vertical and horiz. lines you can do :
,_Chart1.Series(0).getAsColorGrid().GetPen().setVisible(false);
to hide the vertical and horiz. lines you can do :
,_Chart1.Series(0).getAsColorGrid().GetPen().setVisible(false);
Pep Jorge
http://support.steema.com
http://support.steema.com