TChartEditor fails to show series format tab

TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
Post Reply
Toreba
Newbie
Newbie
Posts: 29
Joined: Wed Sep 02, 2015 12:00 am

TChartEditor fails to show series format tab

Post by Toreba » Mon Jun 13, 2016 3:46 pm

Hi,

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?

Regards

Toreba

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

Re: TChartEditor fails to show series format tab

Post by Yeray » Tue Jun 14, 2016 7:45 am

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;
begin
  result:='THistogramSeriesEditor';
end;
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.
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

Toreba
Newbie
Newbie
Posts: 29
Joined: Wed Sep 02, 2015 12:00 am

Re: TChartEditor fails to show series format tab

Post by Toreba » Fri Jun 24, 2016 3:44 pm

Yeray,

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?

Regards

Toreba

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

Re: TChartEditor fails to show series format tab

Post by Narcís » Mon Jun 27, 2016 9:39 am

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: http://bugs.teechart.net/show_bug.cgi?id=1569
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

Post Reply