Thanks. Added in r31630-31639, please review and test.
If you have further modifications, please post them as patches.
Besides minor style changes and bugfixes, I have a few questions:
1) Do you want to take Legend.Order property into account?
If yes, you should call FChart.Legend.SortItemsByOrder, otherwise
there is no need to fill Order property of legend items.
Alternatively, you can order series by ZPosition, as they are ordered on chart.
2) Why OnSeriesIconClick is actiaved by *double* click? I think it should be either renamed
or changed into a single click.
3) Controlling series in the listbox by OnPopulate/RemoveSeries seems
convoluted to me. I suggest the following independent alternatives:
3.1) Take Series.Legend.Visible into account, at least optionally
3.2) Create OnAddSeries(TChartListBox, TCustomSeries, var ASkip: Boolean) event
4) Perhaps a single Options property instead of a set of boolean properties is
preferable -- currently there are just two of them, but I just suggested one more...
5) Radiobutton style enforces single active series even if ShowCheckboxes = false,
I am not quite sure, but I'm inclined to say this is a bug.
6) What should multiselect do?
7) Multi-column drawing is not quite correct, but it is not your fault, I should add TextRect
capability ti the IChartDrawer interface...
8 ) The icon you provided seems to display with the right edge cut off