Page 1 of 1

Show ChartEditor with some tabs.

Posted: Tue Oct 24, 2006 7:14 pm
by 9347436
I have an application that uses a chart and charteditor. This ChartEditor must be run with some tabs and not with all tabs. I use the property HideTabs of it.
But some tabs doesn't hide and when I select their, happens a error.

Somebody know how resolve it?

Thanks.

Posted: Wed Oct 25, 2006 8:08 am
by narcis
Hi ACCL,

Which are the tabs that are not hidden and cause the error? Which TeeChart version are you using?

Thanks in advance.

Posted: Wed Oct 25, 2006 11:31 am
by 9347436
narcis wrote:Hi ACCL,

Which are the tabs that are not hidden and cause the error? Which TeeChart version are you using?

Thanks in advance.
The follow as: Export, Print, Themes...

The TeeChart version is 7.07 with Delphi6.

Thanks.

Posted: Wed Oct 25, 2006 1:32 pm
by narcis
Hi ACCL,

It works fine for me here using v7.07 and this code:

Code: Select all

Uses TeeEditCha, TeeThemeEditor;

procedure TForm8.Button1Click(Sender: TObject);
begin
  ChartEditor1.Execute;
end;

procedure TForm8.CheckBox1Click(Sender: TObject);
Var NewTabs : TChartEditorHiddenTabs;
begin
  NewTabs:=[cetTools,cetExport,cetPrintPreview,cetSeriesData];
  if CheckBox1.Checked then
     ChartEditor1.HideTabs:=ChartEditor1.HideTabs+NewTabs
  else
     ChartEditor1.HideTabs:=ChartEditor1.HideTabs-NewTabs;
end;
To hide Themes tab you just need to not include TeeThemeEditor unit in your form.

If the problem persists please send us an example we can run "as-is" to reproduce the problem here.

You can post your files at news://www.steema.net/steema.public.attachments newsgroup.

Posted: Wed Oct 25, 2006 6:38 pm
by 9347436
narcis wrote:Hi ACCL,

It works fine for me here using v7.07 and this code:

Code: Select all

Uses TeeEditCha, TeeThemeEditor;

procedure TForm8.Button1Click(Sender: TObject);
begin
  ChartEditor1.Execute;
end;

procedure TForm8.CheckBox1Click(Sender: TObject);
Var NewTabs : TChartEditorHiddenTabs;
begin
  NewTabs:=[cetTools,cetExport,cetPrintPreview,cetSeriesData];
  if CheckBox1.Checked then
     ChartEditor1.HideTabs:=ChartEditor1.HideTabs+NewTabs
  else
     ChartEditor1.HideTabs:=ChartEditor1.HideTabs-NewTabs;
end;
To hide Themes tab you just need to not include TeeThemeEditor unit in your form.

If the problem persists please send us an example we can run "as-is" to reproduce the problem here.

You can post your files at news://www.steema.net/steema.public.attachments newsgroup.
Ok, I'll send a example of it tomorrow, because now I'm very busy.

Best regards.