Bug in GanttTool

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
Anton Rau
Newbie
Newbie
Posts: 11
Joined: Fri Nov 15, 2002 12:00 am
Location: Zurich, Switzerland

Bug in GanttTool

Post by Anton Rau » Thu Mar 30, 2006 2:14 pm

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

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

Post by Narcís » Thu Mar 30, 2006 2:23 pm

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?
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

Anton Rau
Newbie
Newbie
Posts: 11
Joined: Fri Nov 15, 2002 12:00 am
Location: Zurich, Switzerland

Post by Anton Rau » Thu Mar 30, 2006 3:02 pm

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

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

Post by Narcís » Fri Mar 31, 2006 9:04 am

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.
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

Anton Rau
Newbie
Newbie
Posts: 11
Joined: Fri Nov 15, 2002 12:00 am
Location: Zurich, Switzerland

Post by Anton Rau » Fri Mar 31, 2006 12:09 pm

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

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

Post by Narcís » Fri Mar 31, 2006 2:13 pm

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.
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