Get Nogrid Option with a ColorGrid

TeeChart for ActiveX, COM and ASP
Post Reply
Pade
Newbie
Newbie
Posts: 7
Joined: Wed Jul 14, 2004 4:00 am
Location: france

Get Nogrid Option with a ColorGrid

Post by Pade » Sun Jan 09, 2005 10:25 am

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

Narcís
Site Admin
Site Admin
Posts: 14730
Joined: Mon Jun 09, 2003 4:00 am
Location: Banyoles, Catalonia
Contact:

Post by Narcís » Mon Jan 10, 2005 9:15 am

Hello Pade,

You have to include the includes:

Code: Select all

#include "TeeChartDefines.h"
#include "Series.h"
#include "Axis.h"
#include "Axes.h"
#include "Pen.h"
and the code:

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
Image Image Image Image Image Image
Instructions - How to post in this forum

Pade
Newbie
Newbie
Posts: 7
Joined: Wed Jul 14, 2004 4:00 am
Location: france

Post by Pade » Mon Jan 10, 2005 10:35 am

Thanks you very much,

Pascal

Pade
Newbie
Newbie
Posts: 7
Joined: Wed Jul 14, 2004 4:00 am
Location: france

Pb with Nogrid option in ColorGrid Chart

Post by Pade » Mon Jan 10, 2005 11:59 am

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

Pep
Site Admin
Site Admin
Posts: 3303
Joined: Fri Nov 14, 2003 5:00 am
Contact:

Post by Pep » Mon Jan 10, 2005 12:07 pm

Hi Pascal,

to hide the vertical and horiz. lines you can do :
,_Chart1.Series(0).getAsColorGrid().GetPen().setVisible(false);

Pade
Newbie
Newbie
Posts: 7
Joined: Wed Jul 14, 2004 4:00 am
Location: france

Post by Pade » Mon Jan 10, 2005 7:59 pm

Thanks very much Josep

Pascal

Post Reply