Legend checkbox error
Posted: Tue Feb 06, 2007 10:46 pm
TeeChart Pro 7.08 Win32 VCL
There is a bug when one changes the legend style from "No check boxes" to "Check boxes" and back. If you have multiple series on a chart and change the legend to show checkboxes, this works fine. When you change it back to no check boxes, it turns off the checkboxes, but it also unchecks all of the series except for the first one which was checked.
It would make a lot more sense for each series to maintain its state rather than to be turned off when the legend style changes. My guess is that it thinks its briefly a radio button and therefore unchecks everything but the first selected series.
You can see this behavior using the New Features Demo.
1. Go to "New in Legend" and Choose "Legend Title"
2. Click on the "Legend Title properties" button
3. Click on the Series Tab, choose Series 1 and Clone it. You now have two series displayed on the chart.
4. Click on the Legend Tab and change the style from "No check boxes" to "Check boxes". Both series are now displayed in the legend as checked.
5. Change the style from "Check boxes" back to "No check boxes". Series 2 disappears from the Legend. If you check the Series tab it has now become unchecked.
There is a bug when one changes the legend style from "No check boxes" to "Check boxes" and back. If you have multiple series on a chart and change the legend to show checkboxes, this works fine. When you change it back to no check boxes, it turns off the checkboxes, but it also unchecks all of the series except for the first one which was checked.
It would make a lot more sense for each series to maintain its state rather than to be turned off when the legend style changes. My guess is that it thinks its briefly a radio button and therefore unchecks everything but the first selected series.
You can see this behavior using the New Features Demo.
1. Go to "New in Legend" and Choose "Legend Title"
2. Click on the "Legend Title properties" button
3. Click on the Series Tab, choose Series 1 and Clone it. You now have two series displayed on the chart.
4. Click on the Legend Tab and change the style from "No check boxes" to "Check boxes". Both series are now displayed in the legend as checked.
5. Change the style from "Check boxes" back to "No check boxes". Series 2 disappears from the Legend. If you check the Series tab it has now become unchecked.