Drag Drop version 3.0

TeeChart Beta versions
Post Reply
histry
Newbie
Newbie
Posts: 79
Joined: Thu Aug 10, 2006 12:00 am

Drag Drop version 3.0

Post by histry » Tue Jan 23, 2007 4:21 pm

I like the fact that you can now select different objects within the chart and adjust the properties. Can you also detect on a drag and drop where the drop is occuring. As nn example, we have a chart with an XY and need to detect if the drop is occuring on the X axis or the Y axis

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 » Wed Jan 24, 2007 9:11 am

Hello histry,

Sure you can detect the drop; try:

Code: Select all

   private void tChart1_MouseUp(object sender, MouseEventArgs e)
    {
      if (tChart1.Axes.Left.Clicked(e.X, e.Y))
      {
        MessageBox.Show("Dropped on X Axis");
      }
    }
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