Page 1 of 1
ToolTip mouse move/mouse click
Posted: Mon Mar 23, 2009 11:45 am
by 13047253
Hi
I am having some trouble with TeeChart.
I have a graph, with a Gantt series. The series as a list of tasks - works fine.
Instead of showing the Marks on the tasks, I would like to show them on mouse over.
So I added the Tools.MarkTips, and it also works - kind of.
The correct text is shown, but it triggers the Click event on mouse over???
Is there any workaround for this problem? A sample can be provided if necessary.
Im using TeeChart v. 3.5.3274.30663 on XP with .Net Framework 2 + 3.0 + 3.5
Kind regards
Soren Bendtsen
Posted: Mon Mar 23, 2009 12:55 pm
by yeray
Hi Soren,
Yes, I think that this example would help us a lot in the task of identifying the problem because this code seems to work fine for me here:
Code: Select all
private void InitializeChart()
{
Gantt gantt1 = new Gantt(tChart1.Chart);
gantt1.FillSampleValues(10);
MarksTip markTips1 = new MarksTip(tChart1.Chart);
markTips1.Series = gantt1;
tChart1.Click += new EventHandler(tChart1_Click);
gantt1.Click += new MouseEventHandler(gantt1_Click);
}
void gantt1_Click(object sender, MouseEventArgs e)
{
tChart1.Header.Text = "Series Clicked!";
}
void tChart1_Click(object sender, EventArgs e)
{
tChart1.Header.Text = "Chart Clicked!";
}
You can either post your files at news://
www.steema.net/steema.public.attachments newsgroup or at our
upload page.
Sample for Gantt series and ToolMarks
Posted: Mon Mar 23, 2009 1:05 pm
by 13047253
Hi Yeray,
I upload two samples using your upload page.
TeeChartGanttSample.zip and TeeChartGanttSampleWorkAround.zip - I entered Soren Bendtsen as name, not sure how to link to it.
The workaround is using a boolean to save if the Click event is fired previously to the ClickPointer event.
Kind regards,
Soren
Posted: Mon Mar 23, 2009 3:41 pm
by yeray
Hi Soren,
Yes, it seems that having a gantt with a MarksTip Tool linked to the gantt, the gantt's event OnClickPointer is fired every time the mouse moves over a gantt, event without click on the series. I've added it to the wish list to be fixed in future releases (TF02013998).
Posted: Tue Mar 24, 2009 10:03 am
by 13047253
Hi Yeray,
I thought it was a strange behavior
Is there any way of tracking the progress of the bug report? (TF02013998)
Kind regards
Soren
Posted: Tue Mar 24, 2009 11:43 am
by narcis
Hi Soren,
There's not a specific bug tracking system. However you can check the
release notes on each release announcement in this forum or subscribe to our
RSS news feed for automatic announcements.
You can also ask on the forums board for specific issues status.