ToolTip mouse move/mouse click

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
SorenBendtsen
Newbie
Newbie
Posts: 18
Joined: Fri Nov 02, 2007 12:00 am
Contact:

ToolTip mouse move/mouse click

Post by SorenBendtsen » Mon Mar 23, 2009 11:45 am

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

Yeray
Site Admin
Site Admin
Posts: 9613
Joined: Tue Dec 05, 2006 12:00 am
Location: Girona, Catalonia
Contact:

Post by Yeray » Mon Mar 23, 2009 12:55 pm

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.
Best Regards,
ImageYeray Alonso
Development & Support
Steema Software
Av. Montilivi 33, 17003 Girona, Catalonia (SP)
Image Image Image Image Image Image Please read our Bug Fixing Policy

SorenBendtsen
Newbie
Newbie
Posts: 18
Joined: Fri Nov 02, 2007 12:00 am
Contact:

Sample for Gantt series and ToolMarks

Post by SorenBendtsen » Mon Mar 23, 2009 1:05 pm

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

Yeray
Site Admin
Site Admin
Posts: 9613
Joined: Tue Dec 05, 2006 12:00 am
Location: Girona, Catalonia
Contact:

Post by Yeray » Mon Mar 23, 2009 3:41 pm

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).
Best Regards,
ImageYeray Alonso
Development & Support
Steema Software
Av. Montilivi 33, 17003 Girona, Catalonia (SP)
Image Image Image Image Image Image Please read our Bug Fixing Policy

SorenBendtsen
Newbie
Newbie
Posts: 18
Joined: Fri Nov 02, 2007 12:00 am
Contact:

Post by SorenBendtsen » Tue Mar 24, 2009 10:03 am

Hi Yeray,

I thought it was a strange behavior :D

Is there any way of tracking the progress of the bug report? (TF02013998)

Kind regards
Soren

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 Mar 24, 2009 11:43 am

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