Page 1 of 1

Chart Editor

Posted: Wed Feb 25, 2009 5:49 am
by 13051032
How can display chart editor without having to display every tab in it. I mean, i simply want the user to control few aspects of it, such as 2D or 3D chart type, etc. and do not want to show everything.

Also, is there anyway i can change the charteditor title to something more suitable to my application instead of "TChart Editor"?

Posted: Wed Feb 25, 2009 12:34 pm
by 10050769
Hi asupriya,
How can display chart editor without having to display every tab in it. I mean, i simply want the user to control few aspects of it, such as 2D or 3D chart type, etc. and do not want to show everything
For that chart editor restrict to display every tabs you could do a similar code for next example:

Code: Select all

    Private Sub Button3_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button3.Click
        Editor1.HideTabs = New Steema.TeeChart.Editors.ChartEditorTabs() { _
            Steema.TeeChart.Editors.ChartEditorTabs.Data, _
            Steema.TeeChart.Editors.ChartEditorTabs.Series, _
            Steema.TeeChart.Editors.ChartEditorTabs.Legend, _
            Steema.TeeChart.Editors.ChartEditorTabs.Walls}
        Editor1.ShowModal()

    End Sub
Property Editor1.HideTabs lets not show all tabs. So just add to the new ChartEditorTabs list of tabs that do not want the users to modify, as is do in the previous code.
I also advise that you have a look at the tutorial and demo examples included with TeeChart .Net installer. Specially you can see a simple example for Editor in All Features\Welcome !\Components\ChartController\ChartController Editor or All Features\Welcome !\Components\Gallery

Also, is there anyway i can change the charteditor title to something more suitable to my application instead of "TChart Editor"?
There's not a property for that at the moment. The only option would be modifying it yourself in TeeChart sources if you are a sourcecode customer