Page 1 of 1

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

Posted: Fri Jan 13, 2017 7:59 pm
by 15048900
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?

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

Posted: Mon Jan 16, 2017 10:13 am
by Christopher
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.