drag over events for Tchart.net V2 chart and list

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
Adrian
Newbie
Newbie
Posts: 13
Joined: Fri Dec 10, 2004 5:00 am
Location: Canberra Australia
Contact:

drag over events for Tchart.net V2 chart and list

Post by Adrian » Fri Jun 24, 2005 6:25 am

Hi there,
I've just upgraded to V2 of Tchart.net. my V1 application allowed users to create series by droping a value onto the tchart listbox, However after the upgrade to V2 it appears that the dragover events for both the chart and listbox aren't being triggered. Is this a problem or am I missing something?

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

Post by Narcís » Tue Jun 28, 2005 11:19 am

Hi Adrian,

I've been able to reproduce what you reported but only for chartListBox, it worked fine for tChart. I've already added this bug (TV52010728) to our deffect list to be fixed for future releases.
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

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

Post by Narcís » Tue Jun 28, 2005 2:54 pm

Hi Adrian,

It has already been fixed for next v2 maintenance release. With this fix, the code below will work fine:

Code: Select all

private void Form1_Load(object sender, System.EventArgs e) 
{ 
this.chartListBox1.Chart = tChart1;
}

private void button1_MouseDown(object sender, System.Windows.Forms.MouseEventArgs e)
{
button1.DoDragDrop(new Steema.TeeChart.Styles.Bar(), DragDropEffects.Move);
}

private void chartListBox1_DragEnter(object sender, System.Windows.Forms.DragEventArgs e)
{
if (e.Data.GetDataPresent(typeof(Steema.TeeChart.Styles.Bar)))
e.Effect = DragDropEffects.Move;
else
e.Effect = DragDropEffects.None;
}

private void chartListBox1_DragDrop(object sender, System.Windows.Forms.DragEventArgs e)
{
tChart1.Series.Add(e.Data.GetData(typeof(Steema.TeeChart.Styles.Bar)) as Steema.TeeChart.Styles.Bar);
tChart1[tChart1.Series.Count - 1].FillSampleValues();
}
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

Adrian
Newbie
Newbie
Posts: 13
Joined: Fri Dec 10, 2004 5:00 am
Location: Canberra Australia
Contact:

drag over events for Tchart.net V2 chart and list

Post by Adrian » Mon Jul 04, 2005 7:15 am

Thanks Narcis,
Can you give me an idea when the V2 maintenance release will be avaialble?

thanks..

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

Post by Narcís » Mon Jul 04, 2005 8:58 am

Hi Adrian,

Sorry but I can't give you a date. However, considering our policy which aproximately consists on 3 maintenance releases and a major release every year, and that v2 was released about 2 weeks ago, you may expect the next maintenance release in about 3 months.
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

Post Reply