Can we get mouse events on legend checkbox ?

TeeChart for Java (NetBeans, Eclipse, Android Studio, etc)
Post Reply
Chen
Newbie
Newbie
Posts: 43
Joined: Tue Mar 11, 2008 12:00 am
Contact:

Can we get mouse events on legend checkbox ?

Post by Chen » Tue Jul 01, 2008 6:56 pm

Hi,

I want to listen to mouse events on legend checkbox. Is that possible ?
I see that you are drawing check boxes.

Thanks,
Varun

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

Post by Narcís » Wed Jul 02, 2008 9:33 am

Hi Varun,

Yes, you can use mouse events as shown here and get clicked item like this:

Code: Select all

        int legendIndex = chart1.getLegend().clicked(e.getX(), e.getY());
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