Page 1 of 1
drag over events for Tchart.net V2 chart and list
Posted: Fri Jun 24, 2005 6:25 am
by 8128237
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?
Posted: Tue Jun 28, 2005 11:19 am
by narcis
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.
Posted: Tue Jun 28, 2005 2:54 pm
by narcis
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();
}
drag over events for Tchart.net V2 chart and list
Posted: Mon Jul 04, 2005 7:15 am
by 8128237
Thanks Narcis,
Can you give me an idea when the V2 maintenance release will be avaialble?
thanks..
Posted: Mon Jul 04, 2005 8:58 am
by narcis
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.