Page 1 of 1

Hide series and tools in the editor

Posted: Thu Oct 27, 2005 6:30 am
by 9337158
Hi,

It's possible to hide Dataset in the editor by using IsValidDataSource function. How is it possible to hide series and tools ?

Regards

Posted: Thu Oct 27, 2005 7:35 am
by narcis
Hi stsl,

Yes, this is possible.

For hidding datasets please have a look at the "All Features\Welcome!\Components\Chart Editor\Hide DataSets" example at the TeeChart features demo which you'll find at TeeChart's program group.

Regarding hidding chart editor tabs you can include TeeEditCha unit to your project and do:

Code: Select all

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

procedure TForm1.FormCreate(Sender: TObject);
Var NewTabs: TChartEditorHiddenTabs;
begin
  NewTabs:=[cetTools, cetSeriesGeneral, cetSeriesMarks,
            cetAllSeries, cetSeriesData];

  ChartEditor1.HideTabs:=ChartEditor1.HideTabs+NewTabs;
end;

Hiding only one tool or one serie

Posted: Thu Oct 27, 2005 7:52 am
by 9337158
Hi,

It's not that i woul'd like to to. I woul'd like to hide only one tool in the tools list for example or one serie in the list.

I am using "internal" series and tools and i woul'd like to prevent the user to access to these objects.

Regards

Posted: Wed Nov 02, 2005 9:22 am
by Pep
Hi,
It's not that i woul'd like to to. I woul'd like to hide only one tool in the tools list for example or one serie in the list.
This feature is not yet available, however I've added it on our wish list to be considered for further releases.
In meantime a trick could be to remove the tool you want to hide before to call the Chart Editor and then add it again.