Page 1 of 1

TChartEditor fails to show series format tab

Posted: Mon Jun 13, 2016 3:46 pm
by 16575285

In a simple test project, I add a THistogramSeries, and at design time I can use a chart editor to set colours via the series Format tab.

But at run time, the Format tab is missing.

And, if I then pick from the chart editor's combo box another series that isn't a THistogramSeries, the chart editor does not show the Format tab for that series either.

I'm using TeeChart Pro. 2014.12.140923 32-bit VCL in XE7. Would updating help?



Re: TChartEditor fails to show series format tab

Posted: Tue Jun 14, 2016 7:45 am
by yeray
Hello Toreba,

Each Series class has a GetEditorClass to retrieve the class name of its editor. If your application includes the unit that contains that editor class, your editor will show the "Format" tab for that series.
Ie, the THistogramSeries editor is of the class THistogramSeriesEditor:

Code: Select all

class Function THistogramSeries.GetEditorClass:String;
And THistogramSeriesEditor is defined in TeeHistoEdit. So adding TeeHistoEdit at your uses clause will make your editor to show the "Format" tab for the Histogram series.

Other units for specific editors are:
TeeCustEdit for TCustomSeries (TLineSeries, TVolumeSeries, TOHLCSeries)
TeePoEdi for TPointSeries (included in TeeCustEdit)
TeeFLineEdi for TFastLineSeries
TeeAreaEdit for TAreaSeries
TeeBarEdit for TCustomBarSeries (TBarSeries, THorizBarSeries)
TeeDonutEdit for TDonutSeries
TeePieEdit for TPieSeries (included in TeeDonutEdit)

Here I said:
Yeray wrote:you can add the EditChar unit, that adds all the editors for you.
But actually it adds some editors, not all (I'll edit that post).
You can load all the editors by adding the TeeEditPro unit into the uses section.
However, TeeEditPro uses TeeThemeEditor so it will also add the "Themes" tab to your editor.

Re: TChartEditor fails to show series format tab

Posted: Fri Jun 24, 2016 3:44 pm
by 16575285

Thanks very much for explaining how to resolve that problem. It works just fine now.

As you said, the 'Themes' tab is now displayed, and it looks as if that's a tab that I can't hide. Is that correct?



Re: TChartEditor fails to show series format tab

Posted: Mon Jun 27, 2016 9:39 am
by narcis
Hi Toreba,

You should be able to use HideTabs feature as shown in the All Features\Welcome!\Componets\Chart Editor\Chart Editor dialog example in the features demo, available at TeeChart's program group. However, themes tab is not an option available. I added your request to bugzilla: