get the double click on Rectangle tool

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
Amol
Advanced
Posts: 176
Joined: Mon May 29, 2006 12:00 am

get the double click on Rectangle tool

Post by Amol » Thu Mar 20, 2014 1:19 pm

Hi Steema Support,
How can get the double click on Rectangle tool as shown in fig.
aa.jpg
aa.jpg (60.38 KiB) Viewed 5569 times

When we double click on Rectangle Tool it Should raise a Message showing that Mouse double clicked on Rectangle Tool.
It will so helpful for us if you please provide any alternative solution.

Thanks in advance.


Thanks and Regards
Planoresearch

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

Re: get the double click on Rectangle tool

Post by Christopher » Fri Mar 21, 2014 1:33 pm

Hello Amol,
Amol wrote:When we double click on Rectangle Tool it Should raise a Message showing that Mouse double clicked on Rectangle Tool.
It will so helpful for us if you please provide any alternative solution.
You could try something similar to:

Code: Select all

    RectangleTool tool;

    private void InitializeChart()
    {
      tool = new RectangleTool(tChart1.Chart);
      tool.Text = "Hello!";
      tool.Shape.Transparency = 0;

      tChart1.MouseDoubleClick += tChart1_MouseDoubleClick;
    }

    void tChart1_MouseDoubleClick(object sender, MouseEventArgs e)
    {
      MessageBox.Show(tool.Bounds.Contains(e.Location).ToString());
    }
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

Post Reply