Hide Grid Lines in ColorGrid?

TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
Post Reply
ix07
Newbie
Newbie
Posts: 11
Joined: Wed Apr 15, 2015 12:00 am

Hide Grid Lines in ColorGrid?

Post by ix07 » Fri Dec 18, 2015 1:44 pm

Hi.

How can I hide the grid in a TColorGridSeries at runtime? I can easily hide it using the designer, selecting the series and then "Format/Format/Grid/Visible". But I found no way to access the "Format" property for a series at runtime.

This is how I create the series:

--- snip ---
std::unique_ptr<TColorGridSeries> series(new TColorGridSeries(chart_));

series->Legend->Visible = false;
series->IrregularGrid = false;
series->Marks->Visible = false;

chart_->AddSeries(series.release());

-- snap ---

I tried to use the axes-property on the chart - but that had no effect:

chart_->Axes->Left->Visible = false;
chart_->Axes->Top->Visible = false;
chart_->Axes->Right->Visible = false;
chart_->Axes->Bottom->Visible = false;

What am I missing?

Thanks.

Yeray
Site Admin
Site Admin
Posts: 9534
Joined: Tue Dec 05, 2006 12:00 am
Location: Girona, Catalonia
Contact:

Re: Hide Grid Lines in ColorGrid?

Post by Yeray » Mon Dec 21, 2015 12:43 pm

Hello,

Try with this:

Code: Select all

series->Pen->Visible = false;
Best Regards,
ImageYeray Alonso
Development & Support
Steema Software
Av. Montilivi 33, 17003 Girona, Catalonia (SP)
Image Image Image Image Image Image Please read our Bug Fixing Policy

Post Reply