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?
How to tell if click in legend is in the checkbox or name
-
- Newbie
- Posts: 93
- Joined: Thu Apr 17, 2008 12:00 am
-
- 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
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.biqpaulson wrote:How do I tell the difference between a click in the legend checkbox and a click on the Legend series name itself?
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 |