Default left mouse click now right mouse

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
avatar
Newbie
Newbie
Posts: 18
Joined: Mon Jun 20, 2005 4:00 am
Location: Calgary, Canada
Contact:

Default left mouse click now right mouse

Post by avatar » Tue Dec 27, 2005 10:52 pm

Hi Narcís

I’m still having problems with the new release .NET v2.0.2179.21171. Prior to installing the new release I could select a series with a left mouse click. It now only works with a right mouse click.

I searched and found the button property for drawline, but nothing for TeeChart in general. All my click events were based on left mouse clicks. My testing shows the new version default is right mouse clicks. Where do I change this so they are all left?

I could not fine anything about this change in the release notes either.

Thanks

Christopher
Site Admin
Site Admin
Posts: 1349
Joined: Thu Jan 01, 1970 12:00 am
Location: Riudellots de la Selva, Catalonia
Contact:

Post by Christopher » Mon Jan 02, 2006 11:24 am

Hi -

Using TeeChart .NET v2.0.2179.21171 in Visual Studio 2005, the following code works as expected, that is, a MessageBox appears on clicking the series with the left mouse button:
private Steema.TeeChart.Styles.Points points1;
private void Form1_Load(object sender, System.EventArgs e)
{
points1 = new Steema.TeeChart.Styles.Points(tChart1.Chart);
points1.Click+=new MouseEventHandler(points1_Click);
points1.FillSampleValues();
}

private void points1_Click(object sender, System.Windows.Forms.MouseEventArgs g)
{
tChart1.Chart.CancelMouse = true;
MessageBox.Show("CLICK");
}
Can you tell me if the code above works for you?
Thank you!

Christopher Ireland (Steema crew)
Please be aware of the newsgroup archives:
http://www.teechart.net/support/search.php
http://groups.google.com
http://codenewsfast.com/

avatar
Newbie
Newbie
Posts: 18
Joined: Mon Jun 20, 2005 4:00 am
Location: Calgary, Canada
Contact:

Post by avatar » Mon Jan 02, 2006 2:58 pm

Hi Christopher,

Sorry I could not wait any longer as I had to release a bug fix of my own. I uninstalled TeeChart .NET v2.0.2179.21171. To date I have not been able to use any of the V2.0 maintenance releases. As I have a license for V1.1 would I be better off with this version?

My original question was with TChart1_ClickSeries not points1_Click but the two are probably the same.

With the new release all my left mouse clicks would now work only with a right mouse click so some default had changed.

With e As System.Windows.Forms.MouseEventArgs I can capture a left click with

If e.Button = MouseButtons.Left Then

End If

Christopher
Site Admin
Site Admin
Posts: 1349
Joined: Thu Jan 01, 1970 12:00 am
Location: Riudellots de la Selva, Catalonia
Contact:

Post by Christopher » Mon Jan 02, 2006 3:22 pm

Hi -
Sorry I could not wait any longer as I had to release a bug fix of my own. I uninstalled TeeChart .NET v2.0.2179.21171. To date I have not been able to use any of the V2.0 maintenance releases. As I have a license for V1.1 would I be better off with this version?
TeeChart for .NET version 2 has a large number of new features and improvements on old features which are more than worth the small upgrade fee one has to pay :-)
My original question was with TChart1_ClickSeries not points1_Click but the two are probably the same.

With the new release all my left mouse clicks would now work only with a right mouse click so some default had changed.
Which version of TeeChart for .NET are you using?
Thank you!

Christopher Ireland (Steema crew)
Please be aware of the newsgroup archives:
http://www.teechart.net/support/search.php
http://groups.google.com
http://codenewsfast.com/

avatar
Newbie
Newbie
Posts: 18
Joined: Mon Jun 20, 2005 4:00 am
Location: Calgary, Canada
Contact:

Post by avatar » Mon Jan 02, 2006 3:54 pm

I am using 2.0.1992.14012 which I believe is the original. I have had problems with margins with every maintenance release. My app has three right axes and three left axes. The margins cut of the axis on print. It appears ok in the last release but the last point not displaying is a problem.

Thanks

Christopher
Site Admin
Site Admin
Posts: 1349
Joined: Thu Jan 01, 1970 12:00 am
Location: Riudellots de la Selva, Catalonia
Contact:

Post by Christopher » Tue Jan 03, 2006 8:26 am

Hi -
My original question was with TChart1_ClickSeries not points1_Click but the two are probably the same.

With the new release all my left mouse clicks would now work only with a right mouse click so some default had changed.
I'm afraid I can't reproduce this behaviour here either. Using TeeChart for .NET v2.0.2179.21171 the following code produces a series click event which is responsive to all mouse click events, that is, to left-button, right-button and middle-button:

Code: Select all

		private Steema.TeeChart.Styles.Points points1;
		private void Form1_Load(object sender, System.EventArgs e)
		{
			points1 = new Steema.TeeChart.Styles.Points(tChart1.Chart);
			points1.FillSampleValues();

			tChart1.ClickSeries +=new Steema.TeeChart.TChart.SeriesEventHandler(tChart1_ClickSeries);
		}

		private void tChart1_ClickSeries(object sender, Steema.TeeChart.Styles.Series series, int i, System.Windows.Forms.MouseEventArgs e) 
		{
			 MessageBox.Show("CLICKED " + i.ToString());
		}
It appears ok in the last release but the last point not displaying is a problem.
As I mentioned earlier, this problem is resolved and will be included in the next maintenance release.
Thank you!

Christopher Ireland (Steema crew)
Please be aware of the newsgroup archives:
http://www.teechart.net/support/search.php
http://groups.google.com
http://codenewsfast.com/

Post Reply