Gantt-Chart: how to access object with right mouse button ?

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
peter-sms
Newbie
Newbie
Posts: 2
Joined: Thu Feb 01, 2007 12:00 am
Contact:

Gantt-Chart: how to access object with right mouse button ?

Post by peter-sms » Mon Jun 25, 2007 2:34 pm

I am using a gantt-chart with 8 objects.

If the user is over one object and presses the left-mouse button,
I want show DETAIL-Informations for this object.

How can I get the information, about the current object ( Gantt-object 1-9 ) under the mouse.

I must know, which object it is 1, or 2 or 3...

Tahnks for any help
in advance

Peter

Edu
Advanced
Posts: 206
Joined: Tue Dec 05, 2006 12:00 am
Location: Girona, Catalonia

Post by Edu » Tue Jun 26, 2007 8:08 am

Hi Peter

You should to use the "tChart_ClickSeries" event as below code:

Code: Select all

private void tChart1_ClickSeries(object sender, Steema.TeeChart.Styles.Series s, int valueIndex, MouseEventArgs e)
        {
            if (e.Button == MouseButtons.Left && s is Steema.TeeChart.Styles.Gantt)
            {
                tChart1.Text = "Left button on the Gantt Series, number: " + valueIndex.ToString();
                //here your code.
            }
            else
                tChart1.Text = "";
        }
Best Regards,
Edu

Steema Support Central
http://support.steema.com/

Post Reply