There are a couple of features in v2 regarding the control of available options for the users in the Chart Editor. I am trying to use these and have some questions, of course.
1. Using the, as far as I can tell, undocumented feature of ChartEditorOptions I can control the visible buttons in the Main or General (not sure what its called) panel of the ChartEditor, like Change, Add etc. I don't want the user to be able to add series, clone series or Change the type, at least not from the ChartEditor. This works but in the series listbox used for that panel there is a button for changing the type. This makes the removal of the change button pointless since the user still can change the type.
2. Some of the Tabs are not hidden when added to HideTabs, which has been noted elsewhere, like SeriesDataSource. Can you give me a hint of when I can get a build with this fixed in it? Before that this feature is very non-usable and its a feature that is very much needed for me in my project.
3. The Data tab cannot be hidden at all, it's not in the enum for tabs that you can hide. In my editor that tab doesn't do anything, its just blue and grey, so I would like very much to either hide it or for it to contain something useful.
4. Is there a way to control what series types the user can change a series to in the ChartEditor?
//Tommie
Limiting choices in Chart Editor
Aah, the bliss of reference problems. I discovered that instead of running the latest debug build I was running the version prior to that (at least). You have fixed a couple of the issues I had discovered, like the inability to hide the Data tab, SeriesDatasource etc. That is all working nicely now in v2.0.2105.30289 that I am running.
Now I have one issue left that can be divided in two:
1. Can I stop the user from changing the type of a series from the ChartEditor? I can remove the button but it is still possible to change the type by clicking the series in the list of the ChartEditor.
2. If not, can I limit the available types of series that the user can change between in the ChartEditor?
Removing the button will probably stop most people and then I can set that up using a custom dialog for limiting the available choices but I don't want any user creating a doughnut series for instance since that makes no sense at all.
These are my only issues right now at least.
Cheers,
Tommie
Now I have one issue left that can be divided in two:
1. Can I stop the user from changing the type of a series from the ChartEditor? I can remove the button but it is still possible to change the type by clicking the series in the list of the ChartEditor.
2. If not, can I limit the available types of series that the user can change between in the ChartEditor?
Removing the button will probably stop most people and then I can set that up using a custom dialog for limiting the available choices but I don't want any user creating a doughnut series for instance since that makes no sense at all.
These are my only issues right now at least.
Cheers,
Tommie
-
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
- Contact:
Hi Tommie,
Yes, this can be done using the code below. It is still possible with clicking the small series icon on the series list. But we are going to change it so that the user can't change the series type.
Yes, this can be done using the code below. It is still possible with clicking the small series icon on the series list. But we are going to change it so that the user can't change the series type.
Code: Select all
private void button1_Click(object sender, EventArgs e)
{
Steema.TeeChart.Editors.ChartEditorOptions[] options = new Steema.TeeChart.Editors.ChartEditorOptions[] {
Steema.TeeChart.Editors.ChartEditorOptions.Add,
Steema.TeeChart.Editors.ChartEditorOptions.Clone,
Steema.TeeChart.Editors.ChartEditorOptions.Delete,
Steema.TeeChart.Editors.ChartEditorOptions.Help,
Steema.TeeChart.Editors.ChartEditorOptions.Title
};
editor1.Chart = tChart1;
editor1.Options = options;
editor1.ShowModal();
}
Best Regards,
Narcís Calvet / Development & Support Steema Software Avinguda Montilivi 33, 17003 Girona, Catalonia Tel: 34 972 218 797 http://www.steema.com |
Instructions - How to post in this forum |
Yes, that worked nicely, but what I really want to do now is to limit the number of types available when changing the series type from the ChartEditor, is that possible?
When the user clicks "Change" in that main window, he can change the series to basically any type available. I would like for him to be able to do that but only to types that I allow.
I can do this with my own dialog box, no problem, but if the user uses the ChartEditor he can change the type to whatever type he wishes. That's what I want to be able to limit, the available types of series.
Cheers,
Tommie
When the user clicks "Change" in that main window, he can change the series to basically any type available. I would like for him to be able to do that but only to types that I allow.
I can do this with my own dialog box, no problem, but if the user uses the ChartEditor he can change the type to whatever type he wishes. That's what I want to be able to limit, the available types of series.
Cheers,
Tommie
-
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
- Contact:
Hi Tommie,
I'm afraid this is not possible for now. The only option would be that you customized TeeChart sources to support that feature. Please notice that, TeeChart for .NET sources are available as an option.
However, I'll add this idea to our wish-list to be considered for future releases.
I'm afraid this is not possible for now. The only option would be that you customized TeeChart sources to support that feature. Please notice that, TeeChart for .NET sources are available as an option.
However, I'll add this idea to our wish-list to be considered for future releases.
Best Regards,
Narcís Calvet / Development & Support Steema Software Avinguda Montilivi 33, 17003 Girona, Catalonia Tel: 34 972 218 797 http://www.steema.com |
Instructions - How to post in this forum |