Compatibility of .Tee files with ActiveX control

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
PetexUser
Newbie
Newbie
Posts: 15
Joined: Thu Jul 05, 2018 12:00 am

Compatibility of .Tee files with ActiveX control

Post by PetexUser » Mon Jul 30, 2018 12:15 pm

We have a number of licenses of TeeChart .Net and TeeChart ActiveX and one or more mixed managed and unmanaged applications using both.
We would like to use a .Tee file as a standard template across our applications and this is working fine for the ActiveX v 2018 control.

chart->GetImport().LoadFromFile( pathToTeeFile);

However on downloading TeeChartNET2018_4.1.2018.05040 we could not find a way programmatically to import the .Tee file (generated by the ActiveX) component (as the file format was deemed incorrect).

Can you clarify if the 2018 TeeChart .Net and TeeChart ActiveX .Tee files are compatible.

Christopher
Guru
Posts: 1603
Joined: Fri Nov 15, 2002 12:00 am

Re: Compatibility of .Tee files with ActiveX control

Post by Christopher » Mon Jul 30, 2018 1:48 pm

Hello,
PetexUser wrote:
Mon Jul 30, 2018 12:15 pm
Can you clarify if the 2018 TeeChart .Net and TeeChart ActiveX .Tee files are compatible.
We wrote a while ago a little app called TeeToTen which converts ActiveX .tee files to .NET .ten files - you can download and read how to use it here:
https://steema.com/wp/narcis/2014/04/02 ... es-to-net/
Best Regards,
Christopher Ireland / 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

PetexUser
Newbie
Newbie
Posts: 15
Joined: Thu Jul 05, 2018 12:00 am

Re: Compatibility of .Tee files with ActiveX control

Post by PetexUser » Thu Aug 02, 2018 3:30 pm

Thank you for the prompt reply.

I have tried the TeeToTen utility and it is appears to be a one way migration tool.

We were hoping for a seamless way for our applications to share a common theme/template (and for our customers to be able to create their own custom/company themes through the TeeEditor). This would require a persistent file type to be compatible with both the ActiveX and .Net version (as we continue to use both).

We are in the process of evaluating an upgrade of the TeeChart .Net 2011 version to TeeChart .Net 2018 Version=4.1.2018.5046.
On applying the update we are seeing some new issues (with code that worked previously with the 2011 version).
The main issue concerns Themes. We are seeing the appearance of all MarkTips (turned on) for all data points in all 2D series line plots both in the Theme preview(editor) and on applying the theme to the underlying plot.

• Choose any theme and the preview pane shows floating tooltips for all points and all series (see attachment).
• On applying a theme the chart matches the preview (i.e. with all tool tips visible for all points).
• It does not matter which Theme you choose.
• If we clear the series data and re-add all series data after applying a theme then everything is ok.

Any advice would be appreciated.
Attachments
Theme_MarkTips.png
Theme_MarkTips.png (129.43 KiB) Viewed 34875 times

Christopher
Guru
Posts: 1603
Joined: Fri Nov 15, 2002 12:00 am

Re: Compatibility of .Tee files with ActiveX control

Post by Christopher » Fri Aug 03, 2018 8:11 am

Hello,

We are in the process of making changes to the TeeChart themes for the next version of TeeChart.NET, which has yet to be made public. I was wondering if you would like to run your test again, this time using a test evaluation version of TeeChart.dll which you can download from here:
http://www.teechart.net/files/public/su ... eChart.zip

Does this version resolve any of the problems you mention? Which ones are still left to resolve?
Best Regards,
Christopher Ireland / 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

PetexUser
Newbie
Newbie
Posts: 15
Joined: Thu Jul 05, 2018 12:00 am

Re: Compatibility of .Tee files with ActiveX control

Post by PetexUser » Tue Aug 07, 2018 4:25 pm

How do I safely install/use the beta version ?

I tried copying the new TeeChart.dll to my target build folder (but this does not work).
My Visual Studio (VS) project automatically picks up (and builds against) the installed version 4.1.2018.5045
from the path C:\Program Files (x86)\Steema Software\Steema Folder\

I considered but am nervous of changing the (VS) Toolbox-> .NetFramework Components path to the new dll.
Is it safe to do this ?

Marc
Site Admin
Site Admin
Posts: 1272
Joined: Thu Oct 16, 2003 4:00 am
Location: Girona
Contact:

Re: Compatibility of .Tee files with ActiveX control

Post by Marc » Wed Aug 08, 2018 2:07 pm

Hello,

You could create a new toolbox tab and choose items, browsing for the new dll. The original tab will then not be visible but is still there. The new tab/items could be removed after the test to reshow the original tab.

Alternatively....

Remove the reference to the existing teechart.dll from your project and add the new dll, browsing for it on disk. The project will be recompilable with the new assembly and you can return to the original dll/assembly in the same way, when ready after the test.

Regards,
Marc Meumann
Steema Support

PetexUser
Newbie
Newbie
Posts: 15
Joined: Thu Jul 05, 2018 12:00 am

Re: Compatibility of .Tee files with ActiveX control

Post by PetexUser » Fri Aug 10, 2018 3:43 pm

Thank you for the information.

I have tried the evaluation version as you suggested.
Good news some of our issues are now resolved.
However the main issue with Themes (and MarkTips) remains.
Is there anything further we can try ?
Attachments
Theme_MarkTips_Evaluation.png
Theme_MarkTips_Evaluation.png (200.44 KiB) Viewed 34823 times

Marc
Site Admin
Site Admin
Posts: 1272
Joined: Thu Oct 16, 2003 4:00 am
Location: Girona
Contact:

Re: Compatibility of .Tee files with ActiveX control

Post by Marc » Fri Aug 10, 2018 4:15 pm

Hello,

We'll run a test here to see whether we can reproduce the issue to suggest a fix/workaround for it.

Regards,
Marc
Steema Support

Christopher
Guru
Posts: 1603
Joined: Fri Nov 15, 2002 12:00 am

Re: Compatibility of .Tee files with ActiveX control

Post by Christopher » Thu Aug 16, 2018 11:10 am

Hello,

I'm afraid I haven't been able to reproduce this issue, and I was wondering if you could help me do so. Am I right in my assumption that you are using the TeeToTen tool to convert a TeeChartAX-created *.tee file to a TeeChartNET-compatible *.ten file? If so, would you please be so kind as to send me an example TeeChartAX-created *.tee file which we can feed into TeeToTen to try and reproduce the issue?
Best Regards,
Christopher Ireland / 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

PetexUser
Newbie
Newbie
Posts: 15
Joined: Thu Jul 05, 2018 12:00 am

Re: Compatibility of .Tee files with ActiveX control

Post by PetexUser » Fri Aug 17, 2018 12:04 pm

Hi,

Sorry for the confusion this problem does not involve Tee files import (That was my original question).
The issue here is that Theme selection through the Tee Editor sets All marker tips to be displayed.

I cannot reproduce this with a single series but the (2 series) code snippet below reproduces the issue for me.

Steps to reproduce:

1. Setup a plot with 2 series as below.
2. At runtime bring up the TeeEditor
3. Navigate to the Theme Tab and select any theme
4. The preview will show all MarkTips are on
5. Apply the theme (all mark tips are turned on i.e. on the actual plot as per previous screenshots)
6. Navigate to Series-Mark Tab
Series-Marks-All Series Visible is checked for each series
- Deselect the All Series option
- Reselect the Visible option
7. Close the Tee Editor
Result all Mark tips are visible for all points

Note
- When I change the Theme type (at step 3) both options are on by default.
If the plot has a large number of points I would argue that All series Visible default should be off (unchecked).
- If I switch the series back and forth (at step 6) with the drop down list the (All series and Visible) settings
are not remembered i.e. both options are turned(back) on(checked) when I select a different series.

public void AddSeriesPlots()
{
Steema.TeeChart.Styles.Line lineSeries1;
editChart1.GetChart().Series.Add(lineSeries1 = new Steema.TeeChart.Styles.Line());
lineSeries1.FillSampleValues(1000);
lineSeries1.Pointer.Visible = true;
editChart1.AddSeriesTip(lineSeries1, 1500);
lineSeries1.Marks.DrawEvery = 0;

Steema.TeeChart.Styles.Line lineSeries2;
editChart1.GetChart().Series.Add(lineSeries2 = new Steema.TeeChart.Styles.Line());
lineSeries2.FillSampleValues(1200);
lineSeries2.Pointer.Visible = true;
editChart1.AddSeriesTip(lineSeries2, 1500);
}

public void AddSeriesTip(Steema.TeeChart.Styles.Line line, int delay)
{
Steema.TeeChart.Tools.MarksTip markstip = new Steema.TeeChart.Tools.MarksTip(tChart1.Chart);
markstip.Series = line;
markstip.Style = Steema.TeeChart.Styles.MarksStyles.XY;
markstip.HideDelay = Int16.MaxValue;
markstip.MouseDelay = 250;
}

Christopher
Guru
Posts: 1603
Joined: Fri Nov 15, 2002 12:00 am

Re: Compatibility of .Tee files with ActiveX control

Post by Christopher » Mon Aug 20, 2018 2:58 pm

Hello,

thank you, and sorry for the confusion, I've now been able to reproduce your issue here and am working on a fix to it!
Best Regards,
Christopher Ireland / 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

Christopher
Guru
Posts: 1603
Joined: Fri Nov 15, 2002 12:00 am

Re: Compatibility of .Tee files with ActiveX control

Post by Christopher » Tue Aug 21, 2018 11:31 am

Hello,
Christopher wrote:
Mon Aug 20, 2018 2:58 pm
thank you, and sorry for the confusion, I've now been able to reproduce your issue here and am working on a fix to it!
Okay, I think I've fixed this issue - would you please be so kind as to test whether the attached test teechart.dll works as expected for you?

http://www.teechart.net/files/public/su ... Chart2.zip
Best Regards,
Christopher Ireland / 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

PetexUser
Newbie
Newbie
Posts: 15
Joined: Thu Jul 05, 2018 12:00 am

Re: Compatibility of .Tee files with ActiveX control

Post by PetexUser » Thu Aug 23, 2018 11:17 am

Hi Chris,

I am sorry looks like my earlier reply did not post.

The good news is that the fix does work as expected when I change the Theme type in the Tee Editor, thank you for this.
There are still issues if you navigate to Series ... Marks Tab (in the TeeEditor) but I can I can see that may be the desired behaviour so this is OK.

In my two series example:The Visible and All Series Visible options are both checked if you navigate to Series ... Marks Tab and (the check boxes) do not remember state if you turn All Series Visible off and change the series (drop down).

Thank you gain for your support

Christopher
Guru
Posts: 1603
Joined: Fri Nov 15, 2002 12:00 am

Re: Compatibility of .Tee files with ActiveX control

Post by Christopher » Fri Aug 24, 2018 2:53 pm

Hello!
PetexUser wrote:
Thu Aug 23, 2018 11:17 am
In my two series example:The Visible and All Series Visible options are both checked if you navigate to Series ... Marks Tab and (the check boxes) do not remember state if you turn All Series Visible off and change the series (drop down).
I'm not sure I can reproduce this with the TeeChart.dll I sent you in my last message. First off, the Chart Editor does not open on the Series Marks because of the following line:

Code: Select all

lineSeries1.Marks.DrawEvery = 0;
Uncommenting this out enables the Chart Editor to be opened correctly on the Series Marks (I have already corrected this issue here). Once this is done I then run the following code:

Code: Select all

		public void AddSeriesPlots()
		{
			tChart1.Header.Text = Utils.Version;

			void AddSeriesTip(Steema.TeeChart.Styles.Line line, int delay)
			{
				Steema.TeeChart.Tools.MarksTip markstip = new Steema.TeeChart.Tools.MarksTip(tChart1.Chart);
				markstip.Series = line;
				markstip.Style = Steema.TeeChart.Styles.MarksStyles.XY;
				markstip.HideDelay = Int16.MaxValue;
				markstip.MouseDelay = 250;
			}

			Steema.TeeChart.Styles.Line lineSeries1;
			tChart1.Series.Add(lineSeries1 = new Steema.TeeChart.Styles.Line());
			lineSeries1.FillSampleValues(1000);
			lineSeries1.Pointer.Visible = true;
			AddSeriesTip(lineSeries1, 1500);
			//lineSeries1.Marks.DrawEvery = 0;

			Steema.TeeChart.Styles.Line lineSeries2;
			tChart1.Series.Add(lineSeries2 = new Steema.TeeChart.Styles.Line());
			lineSeries2.FillSampleValues(1200);
			lineSeries2.Pointer.Visible = true;
			AddSeriesTip(lineSeries2, 1500);
		}
and when I run this code and open the Chart Editor using:

Code: Select all

		private void button1_Click(object sender, EventArgs e)
		{
			tChart1.ShowEditor();
		}
I obtain the following:

Image

As you can see, this is different to what you describe.
Best Regards,
Christopher Ireland / 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

PetexUser
Newbie
Newbie
Posts: 15
Joined: Thu Jul 05, 2018 12:00 am

Re: Compatibility of .Tee files with ActiveX control

Post by PetexUser » Tue Aug 28, 2018 3:12 pm

Hi,

As per your explanation you can consider this closed.
Thank you again for your support

Post Reply