Chart Editor

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
asupriya
Advanced
Posts: 179
Joined: Mon Dec 01, 2008 12:00 am

Chart Editor

Post by asupriya » Wed Feb 25, 2009 5:49 am

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"?

Sandra
Site Admin
Site Admin
Posts: 3132
Joined: Fri Nov 07, 2008 12:00 am

Post by Sandra » Wed Feb 25, 2009 12:34 pm

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
Best Regards,
Sandra Pazos / 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