Drag-Drop onto custom Y-axis chart area

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Narcís
Site Admin
Site Admin
Posts: 14730
Joined: Mon Jun 09, 2003 4:00 am
Location: Banyoles, Catalonia
Contact:

Re: Drag-Drop onto custom Y-axis chart area

Post by Narcís » Wed Apr 28, 2010 11:24 am

Hi asupriya,

Ok, in that case you should consider AutoScrollPosition.Y to get the ammount of scroll that has been applieed to the window as in the example below. Find attached complete form code of the working example.

Code: Select all

    private void tchart1_DragDrop(object sender, System.Windows.Forms.DragEventArgs e)
    {
      Steema.TeeChart.TChart tmpChart = (Steema.TeeChart.TChart)sender;
      Steema.TeeChart.Axis dragDropAxis;

      int tmp = this.AutoScrollPosition.Y;

      for (int i = 0; i < tmpChart.Axes.Custom.Count; i++)
      {
        dragDropAxis = tmpChart.Axes.Custom[i];
        if (!dragDropAxis.Horizontal && 
            ((dragDropAxis.IStartPos + tmp <= e.Y) && (dragDropAxis.IEndPos + tmp >= e.Y)))
        {
          MessageBox.Show("Dropped on " + dragDropAxis.Title.Text);
          break;
        }
      }
    }
Attachments
Form1.zip
(1.21 KiB) Downloaded 591 times
Best Regards,
Narcís Calvet / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

asupriya
Advanced
Posts: 179
Joined: Mon Dec 01, 2008 12:00 am

Re: Drag-Drop onto custom Y-axis chart area

Post by asupriya » Thu Apr 29, 2010 2:30 am

Narcis,

Great. AutoscrollPosition.Y did the magic. Thanks for the help.

One Q'n reg. the (upgrade to v4 and ) Pro support - my manager was looking into the pricing page on steema.com and it says 'Developer license' - As we know, the V3 license was for both development and unlimited distribution of desktop applications. If we upgrade to v4, do we loose this flexibility of unlimited distribution?

Also, upgrade includes one year of support. How is it different from the Pro support? We are confused.

Narcís
Site Admin
Site Admin
Posts: 14730
Joined: Mon Jun 09, 2003 4:00 am
Location: Banyoles, Catalonia
Contact:

Re: Drag-Drop onto custom Y-axis chart area

Post by Narcís » Thu Apr 29, 2010 7:38 am

Hi asupriya,
Great. AutoscrollPosition.Y did the magic. Thanks for the help.
You're welcome. I'm glad to hear that. Notice this is not a TeeChart property though :wink:.
One Q'n reg. the (upgrade to v4 and ) Pro support - my manager was looking into the pricing page on steema.com and it says 'Developer license' - As we know, the V3 license was for both development and unlimited distribution of desktop applications. If we upgrade to v4, do we loose this flexibility of unlimited distribution?
No, this doesn't change. The only difference between v3 and v4 in licensing terms is that in v4 license system changes to annual subscriptions. Meaning that you are entitled to download all TeeChart for .NET releases shipped during that year without having to upgrade to any major release. A fter that year you can choose whether to renew or not the subscription. If you don't renew the subscription you will still be able to download versions release during your valid subscription period and use them.
Also, upgrade includes one year of support. How is it different from the Pro support? We are confused.
Yes, one year support is also valid for the subscription period I described in the previous answer. After the subscription expire you can no longer use our standard support channels. This is standard support, which is also described here. Pro-Support includes standard support plus a prioritary support channel.
Best Regards,
Narcís Calvet / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

asupriya
Advanced
Posts: 179
Joined: Mon Dec 01, 2008 12:00 am

Re: Drag-Drop onto custom Y-axis chart area

Post by asupriya » Thu Apr 29, 2010 1:46 pm

You're welcome. I'm glad to hear that. Notice this is not a TeeChart property though
You are right and really appreciate your help. It just didn't click to me to look into the form scroll property.

Thanks also for the explanation for upgrade and related support. I will pass that info to my manager.

Post Reply