Page 1 of 1

Mouse move, mouse click problem

Posted: Wed Oct 17, 2007 5:34 am
by 13046152
Hi,

When i add MarkTip tool for colorGrid, i am not getting the current cell value in the ToolTip. It is showing the next cell value.

Mouse Click Problem :-
------------------------

I have used multiple ColorGrid in one Tchart control and each ColorGrid fits into custom axes.
In the mouse click event for ColorGrid ("colorGrid_Click(object sender, MouseEventArgs e)") "sender" parameter gives the next ColorGrid name instead of the current ColorGrid name.

Posted: Wed Oct 17, 2007 7:52 am
by narcis
Hi vivek,

Thanks for your reports.
When i add MarkTip tool for colorGrid, i am not getting the current cell value in the ToolTip. It is showing the next cell value.
I've been able to reproduce this. There's a half cell offset horizontally and vertically. I've added this defect (TF02012528) to our bug list to be fixed for future releases.
I have used multiple ColorGrid in one Tchart control and each ColorGrid fits into custom axes.
In the mouse click event for ColorGrid ("colorGrid_Click(object sender, MouseEventArgs e)") "sender" parameter gives the next ColorGrid name instead of the current ColorGrid name.
I have also reproduced this. For example, having contiguous series, when clicking the cell closer to the next series also presents a half cell offset as in the previous issue. I've also added it (TF02012524) to our defect list.

ColorGrid ToolTip Problem

Posted: Wed Oct 22, 2008 9:57 am
by 13046152
Hello,

Is that colorgrid ToolTip problem has solved?
Is that the new version of Tchart has released into the market?

With regards,
Vivek.J

Posted: Wed Oct 22, 2008 10:01 am
by 13046152
Hello,

We are using TeeChart NET3 VS NET2005
What is the Latest version of Tchart available in the market?
When the new version will be available in the market?

With regards,
Vivek.J

Posted: Wed Oct 22, 2008 10:19 am
by narcis
Hi Vivek,
Is that colorgrid ToolTip problem has solved?
No, those bugs haven't been fixed yet. Please notice that you reported them 5 days ago.
Is that the new version of Tchart has released into the market?
What is the Latest version of Tchart available in the market?
When the new version will be available in the market?
Please read messages here about this.

Thanks in advance.

colorgrid ToolTip problem

Posted: Thu Oct 23, 2008 4:49 am
by 13046152
Dear Narcís,

I posted that one year ago.
We need that feature for our new project also.
Thats why i asked again.


With regards,
Vivek.J

Posted: Thu Oct 23, 2008 9:46 am
by narcis
Dear vivek,

Sorry, my bad. I just checked the date but not the year :?.

As I told you, those bugs haven't been fixed specifically. However, we have enhanced ColorGrid series behaviour recently and this had a positive effect on those issues. I just checked that TF02012528 works fine for me. Could you please try using latest TeeChart for .NET v3 release? This should solve the issue for you as well.

Regarding TF02012524, I've checked that this works fine when IrregularGrid=false but fails when IrregularGrid=true. Could you also please check if latest release solves the problem at your end?

Thanks in advance.

Posted: Fri Oct 24, 2008 5:17 am
by 13046152
Dear Narcís,

We are using Steema TeeChart for .NET v3(TeeChartNET3VSNET2005 installer). TeeChart.dll version is 3.2.2796.22187.
By default IrregularGrid=false for color grid. we didn't change that property. still we are facing the same problem.
Could you please tell me we can get the new installer.
If new version (after 3.2.2796.22187) available in market then please let us know. so we can test that installer.

With regards,
Vivek.J

Posted: Fri Oct 24, 2008 8:24 am
by narcis
Hi Vivek,

Yes, much newer version is available, at the client area, as announced here.

You may be interested in subscribing to our RSS news feed for automatic release notifications.

Posted: Tue Oct 28, 2008 11:50 am
by 13046152
Dear Narcís,

ToolTip is working fine in the new installer. Thank you so much.

Now i am facing one more problem. I want to give Include and Exclude points/values option in ColorGrid. I tried Colorgrid1.Delete([index]) method to exclude point from ColorGrid. But some times it is throwing error that "Index was outside the Bounds of array".

I have the following doubts,
1. How to get the ColorGrid cell/value index when the user right click on the ColorGrid?
2. How to Include and Exclude point from color grid?
(or)
How to change the color of particular cell in Grid?

Could you please explain me how to do. If you have any sample code, please send it to me.[/img]

Posted: Tue Oct 28, 2008 12:18 pm
by narcis
Hi vivek,
Now i am facing one more problem. I want to give Include and Exclude points/values option in ColorGrid. I tried Colorgrid1.Delete([index]) method to exclude point from ColorGrid. But some times it is throwing error that "Index was outside the Bounds of array".
This is most likely because when you remove points from a series it's bein reindexed and you may still assume series have same number of points it originally had.
I have the following doubts,
1. How to get the ColorGrid cell/value index when the user right click on the ColorGrid?
You can do something as shown in the code snippet below.
2. How to Include and Exclude point from color grid?
(or)
How to change the color of particular cell in Grid?
You could try setting cells transparent as shown in the code snippet below.

Code: Select all

		private Steema.TeeChart.Styles.ColorGrid colorGrid1;

		private void InitializeChart()
		{
			tChart1.Aspect.View3D = false;

			colorGrid1 = new Steema.TeeChart.Styles.ColorGrid(tChart1.Chart);
			colorGrid1.FillSampleValues();
			colorGrid1.Click += new MouseEventHandler(colorGrid1_Click);
		}

		void colorGrid1_Click(object sender, MouseEventArgs e)
		{
			int index = colorGrid1.Clicked(e.X, e.Y);

			colorGrid1.Colors[index] = Color.Transparent;
			colorGrid1.Repaint();
		}

Posted: Tue Oct 28, 2008 1:14 pm
by 13046152
Thank you so much Narcis,

Its working fine for Exclude the points. But how can i include it again.

I am facing one more problem.
I am using custom left axes to show colorgrid.
when i zoomout(shrink) the tchart size (for zooming option) left axes labels are hiding inside (full text not showing outside).
Could you please tell me how to move the left axes position from default position.(I am not asking about StartPosition/EndPosition property).

Posted: Tue Oct 28, 2008 1:49 pm
by narcis
Hi vivek,
Its working fine for Exclude the points. But how can i include it again.
You can set original color back by setting cell color to Color.Empty:

Code: Select all

		void colorGrid1_Click(object sender, MouseEventArgs e)
		{
			int index = colorGrid1.Clicked(e.X, e.Y);

			if (colorGrid1.Colors[index] == Color.Transparent)
			{
				colorGrid1.Colors[index] = Color.Empty;
			}
			else
			{
				colorGrid1.Colors[index] = Color.Transparent;
			}
			
			colorGrid1.Repaint();
		}
I am facing one more problem.
I am using custom left axes to show colorgrid.
when i zoomout(shrink) the tchart size (for zooming option) left axes labels are hiding inside (full text not showing outside).
Could you please tell me how to move the left axes position from default position.(I am not asking about StartPosition/EndPosition property).
In that case you may need to set panel margins manually as custom axes don't set them, for example:

Code: Select all

			tChart1.Panel.MarginLeft = 10;

Posted: Wed Oct 29, 2008 4:59 am
by 13046152
Thank you so much Narcis. Its working fine.