Page 1 of 1
Bug in GanttTool
Posted: Thu Mar 30, 2006 2:14 pm
by 8120574
Hello,
there is a bug in GanttTool.
His events DragBar and ResizeBar fire only when you are moving bar to the right but not to the left. The same situation when you trying to resize the bar so events will fire only when you are resizing bar to the right side.
Please fix it as soon as possible. This bug is critical for my application.
Thank you.
Best regards,
Anton Rau
Posted: Thu Mar 30, 2006 2:23 pm
by narcis
Hi Aton,
It works fine here using latest TeeChart for .NET v2 maintenance release available at our Customer Download Area. Which TeeChart version are you using?
Posted: Thu Mar 30, 2006 3:02 pm
by 8120574
Hi Narcís,
no, it is still not working even with the latest version (2.0.2242.29274).
Just try to assign GanttTool to one Gantt series and then drag it to the right (then it works), afterwards drag it to the left (not working anymore).
Also I have found another bug: property Zoom Direction is not serialized in the design mode so the only solution to set it in run-time.
Best regards,
Anton Rau
Posted: Fri Mar 31, 2006 9:04 am
by narcis
Hi Anton,
no, it is still not working even with the latest version (2.0.2242.29274).
Just try to assign GanttTool to one Gantt series and then drag it to the right (then it works), afterwards drag it to the left (not working anymore).
It works fine for me using the version you mention. Have you checked that your project reference to TeeChart has really changed and the TeeChart.dll it uses corresponds to that version?
Also I have found another bug: property Zoom Direction is not serialized in the design mode so the only solution to set it in run-time.
Yes, you are right, I could reproduce that and added the issue (TF02011338) to our defect list to be fixed for future releases.
Posted: Fri Mar 31, 2006 12:09 pm
by 8120574
narcis wrote:Hi Anton,
no, it is still not working even with the latest version (2.0.2242.29274).
Just try to assign GanttTool to one Gantt series and then drag it to the right (then it works), afterwards drag it to the left (not working anymore).
It works fine for me using the version you mention. Have you checked that your project reference to TeeChart has really changed and the TeeChart.dll it uses corresponds to that version?
Hi Narcís,
I have checked the version of the assembly and it is the latest one. Also I made a small demo of the problem. If you will try this code you will see the problem:
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
namespace WindowsApplication2
{
public partial class Form1 : Form
{
int j = 0;
public Form1()
{
InitializeComponent();
this.gantt1.Add(DateTime.Today, DateTime.Now, 100, Color.Red);
}
private void ganttTool1_DragBar(object sender, Steema.TeeChart.Tools.GanttDragEventArgs e)
{
j++;
this.Text = j.ToString();
}
}
}
The caption of the form will be changed only when you will drag a bar to the right, not to the left.
Best regards,
Anton Rau
Posted: Fri Mar 31, 2006 2:13 pm
by narcis
Hi Anton,
Thanks for the code an sorry for having read the issue to quick. I didn't notice it were the events which weren't fired. I saw the gantt bars were resized and dragged. I've added the issue (TF02011339) to our defect list to be fixed for future releases.
BTW: I've already fixed the zoom direction bug. This fix will be included in the next debug build and maintenance releases.