Importing .Ten file and having some problems in ChartListBox

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
Torte
Newbie
Newbie
Posts: 19
Joined: Fri Sep 16, 2005 4:00 am

Importing .Ten file and having some problems in ChartListBox

Post by Torte » Thu Dec 15, 2005 1:50 pm

Hello,
following question.

In .NET (using C#) I like to import a former saved .ten file.

After starting I have my {TCHART tChart} object without any series in it. But I initialized my according ChartListBox with this tChart object and added tools for example Gridband, CursorTool to the chart. Concering GridBand and CursorTool I added both tools via:
....
this.tChart.Tools.Add(this.CursorTool);
this.tChart.Tools.Add(this.GridBand);

(*Normaly user could load now files in GRAMS and CSV format, to load series into THIS chart. Everythink works fine ....*)

Ok but now I like to importing FIRST of all my .ten file via stream.
(My .ten file has two series inside)

this.tChart.Import.Template.Load(tenStream)

Ok chart appears in correct style all axes colours were set correct ... *fine*

But now I have problems because I don't really understand what is going on when importing .ten file in respect to my tChart object.

After importing I don't see my (of course empty) two series in the Chartlistbox. But did set all series visible via
( tChart.GetSeries.ShowInLegend = true;)

Solution: I have to refresh property Chartlisbox.chart

Ok after it I see my series in the chartlistbox but can't hide them with
( tChart.GetSeries.ShowInLegend = false;)
*Grrrrrrrrrr*

Concerning tools:
After importing I find out I have to re-add my tools via:
this.tChart.Tools.Add(this.CursorTool)
.........

-------------------------

My questions:

I do import .ten file in the right way ? Or should I delete my TChart object first of all and create new one ... ?
Is it normal that I have to refresh Chartlisbox.chart after importing ?
Any idea why I can't hide my series in the Legend (see description above) ?

Best regards from the Baltic
Torsten

Narcís
Site Admin
Site Admin
Posts: 14730
Joined: Mon Jun 09, 2003 4:00 am
Location: Banyoles, Catalonia
Contact:

Post by Narcís » Fri Dec 16, 2005 11:47 am

Hi Torsten,

Could you please send us an example we can run "as-is" to reproduce the problem here and also specify which TeeChart version are you using? You can post your files at [url]news://www.steema.net/steema.public.attachments[/url] newsgroup.

Thanks in advance and regards from the Mediterranean :wink:.
Best Regards,
Narcís Calvet / 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

Torte
Newbie
Newbie
Posts: 19
Joined: Fri Sep 16, 2005 4:00 am

Post by Torte » Mon Dec 19, 2005 12:35 pm

Hi Narcís,
solved my problems :-)
Excepting one. I will open new thread for it.
Regards
Torsten

Post Reply