Page 1 of 1

Cursor Control Issues ...

Posted: Mon Apr 09, 2007 12:27 pm
by 9637796
Hello,

I just recently updated our TChart .NET v2.0 SW to :

Steema.TeeChart.TChart, TeeChart, Version=2.0.2586.24039

from version:

Steema.TeeChart.TChart, TeeChart, Version=2.0.2179.21171

I am now having problems with the cursor, line, and annotation tools. Specifically, the cursor and line tools do not seem to activate the different mouse cursor when hovering the mouse over the control. In some instances, the cursor tools do not even show up on the chart, and if they do the mouse is not able to control them. Also, when these tools are set programatically, they do not go to the set points on the chart.

This problem only cropped up in this latest version. On the previous version, all of these controls worked properly. I cannot send my code out to you, bu I would be willing to set up an online conference from my side to let you see the problem.

Thanks,
Mark

Posted: Tue Apr 10, 2007 9:59 am
by 9348258
Hello Mark

Please notice that we posted a newer version last Friday. We couldn't reproduce the issues you reported using Friday's version. Could you please download it and try if it works fine at your end?

If the problem persist could you please send us a simple example project we can run "as-is" to reproduce the issue here?

You can post your files either at [url]news://www.steema.net/steema.public.attachments[/url] newsgroup or at our upload page

Thanks in advance!

Posted: Thu Apr 12, 2007 9:57 pm
by 9637796
Hello,

Thank you for the response.

Yes, I did notice the latest update and downloaded/installed. Unfourtunately it did not solve the problem. I cannot send you the application, but I will try to make a sample application that hopefully replicates the problem. Also, I am willing/able to setup a web meeting from my side to show you the problem and walk through the code. If this interests you, let me know the date/time (EST please) and I will organize.

Mark

Posted: Thu Apr 12, 2007 11:14 pm
by 9637796
Hello,

I have created a small application that exhibits the same issue as our larger app. How do I go about posting this code to you for review?

Mark

Posted: Fri Apr 13, 2007 7:44 am
by 9348258
Hello Mark

As I said in my first post, you can post your files either at [url]news://www.steema.net/steema.public.attachments[/url] newsgroup or at our upload page.

Could you please let us know when you have posted your files?

Thanks in advance.

Posted: Fri Apr 13, 2007 1:37 pm
by 9637796
Edu,

Hello, thanks for the instruction. I just posted the file via the upload page, and is titled SteemaDemo.zip. I would be very appreciative if you could find the issue quickly as I have a deliverable due in the middle of next week. If the solution cannot be realized quickly, how can I go about getting the earlier release of Steema.TeeChart.TChart, TeeChart, Version=2.0.2586.24039 ?

Thanks,
Mark

Posted: Tue Apr 17, 2007 1:54 pm
by 9637796
Edu,

Did you receive my post of the C# project demonstration showing the cursor issues? Do you have any comments/solutions yet?

Mark

Posted: Thu Apr 19, 2007 5:46 pm
by 9637796
Edu,

I am assuming that no news means that you are working the problem?

Mark

Posted: Fri Apr 20, 2007 7:10 am
by narcis
Hi Mark,

Sorry for not having replied. Yes, we are looking into the issues you reported and we will get back to you ASAP.

Thanks for your patience.

Posted: Fri Apr 20, 2007 10:52 am
by narcis
Hi Mark,

Please find below the answers to your issues:
2. Notice that the mouse icon DOES NOT change to the "move" icon when placed over the cursor tools on the "Chart1" tChart. The cursors DO go to the correct initial position (as defined in the code) on this chart when the file is loaded. Also, the colorLine1 and colorBand1 tools work correctly.
This was a defect that has been fixed now. We expect to release a build with this fix in about a week.
3. Notice that the "annotationSpec1" tool on tChart1 ("Chart1" tab) DOES NOT position itself correctly when the file is first loaded, but after a marker is moved or the file is loaded a second time it shifts to the correct position.
"annotationSpec1" is positioned correctly, it is "annotationSpec2" that isn't. Problem can be solved calling Bitmap after loading the file, for example:

Code: Select all

            //Plot data
            if (Extension == "fevr1")
            {
                tabPage1.Select();
                tChart1.SubHeader.Text = "(" + strFilename + ")";
                Data1.Active = true;
                Data1.Clear();
                Data1.Add(xVector, yVector);
                tChart1.Refresh();
                //Set cursor tools to edges of chart
                cursorSpecTool1.Active = true;
                cursorSpecTool1.XValue = xVector[10];
                cursorSpecTool2.Active = true;
                cursorSpecTool2.XValue = xVector[xVector.Length - 10];
                annotationSpec2.Active = true;
                CalcSpecParms(3);
		    Bitmap bmp = tChart1.Bitmap;
            }
Also notice that in TeeChart for .NET v3 Beta, available a the TeeChart for .NET v2 download area, this "trick" is not necessary.
4. Notice that the mouse icon DOES change to the "move" icon when placed over the cursor tools on the "Chart2" tChart. The cursors DO NOT go to the correct initial position (as defined in the code) on this chart when the file is loaded.
This is because your cursor tools in Chart2 are not set to a series (they are in Chart1). Try setting the Series property of these cursor tools to Data2 and you should see that they work fine:

Code: Select all

            //Place bandwidth marker & maximum value marker
            cursorScanTool1.XValue = xVector[iIndexMax1];
            cursorScanTool1.Active = true;
						cursorScanTool1.Series = Data2;
            cursorScanTool2.XValue = xVector[iIndexMax2];
            cursorScanTool2.Active = true;
						cursorScanTool2.Series = Data2;
            cursorScanTool3.XValue = xVector[xVector.Length / 2];
            cursorScanTool3.Active = true;
						cursorScanTool3.Series = Data2;
            fTscan = xVector[iIndexMax2] - xVector[iIndexMax1];

Posted: Fri Apr 20, 2007 12:49 pm
by 9637796
Edu/Narcis,

Thank you very much for getting to this. I fully understand about searching spam folders, I spend about 1/2 hour each day performing this. I figured that something like this had happened, and with us currently in field trial I was a bit anxious to get some feedback.

Well, I was sure that this code snippet would have a stupid error and it did! When I broke the project into tabbed pages and two graphs I missed setting the cursor tools on chart 2 to data 2. Ugg.

It looks like you did indeed find an issue and will fix in the next upcoming release. I will be looking for this as our product is currently in field trials. I will also implement the "trick" you mentioned.

Again, thank you for you assistance in this. Have a good weekend.

Mark

Posted: Fri Apr 20, 2007 1:50 pm
by narcis
Hello Mark,

I'm glad to hear that solutions found where suitable for your needs.

Thanks and have a nice weekend too!