How to tell if click in legend is in the checkbox or name

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
biqpaulson
Newbie
Newbie
Posts: 93
Joined: Thu Apr 17, 2008 12:00 am

How to tell if click in legend is in the checkbox or name

Post by biqpaulson » Fri Jan 13, 2017 7:59 pm

I want to use the checkbox in the legend in order to turn off or on the series for the user.
I already allow clicking in the legend on the series name to perform another action.

How do I tell the difference between a click in the legend checkbox and a click on the Legend series name itself?

Christopher
Guru
Posts: 1603
Joined: Fri Nov 15, 2002 12:00 am

Re: How to tell if click in legend is in the checkbox or name

Post by Christopher » Mon Jan 16, 2017 10:13 am

biqpaulson wrote:How do I tell the difference between a click in the legend checkbox and a click on the Legend series name itself?
If tChart1.Legend.CheckBoxes = true; then clicking anywhere on the legend row will activate or deactivate the series. There is no way to differentiate the click. A workaround to this would be to disable CheckBoxes and add in a standard CheckBox to the TChart which would activate or deactivate the series.
Best Regards,
Christopher Ireland / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Instructions - How to post in this forum

Post Reply