Page 1 of 1

where is OnChangeSelectedSeries event of TChartListBox

Posted: Thu Apr 06, 2006 1:31 am
by 9234539
hi,
I couldn't figure out where can I capture event like OnChangeSelectedSeries and OnAddSeries at TChartListBox.

Thanks.

Fang

Posted: Tue Apr 11, 2006 1:22 pm
by Pep
Hi,

you could use the OnOtherItemsChange and the OnRefresh events of the TChartListBox component.

Code: Select all

procedure TForm1.ChartListBox1OtherItemsChange(Sender: TObject);
begin
showmessage('Selected index changed');
end;

procedure TForm1.ChartListBox1Refresh(Sender: TObject);
begin
showmessage('check here which series has been added');
end;

Posted: Tue Apr 11, 2006 2:35 pm
by 9234539
Thanks pep.

BTW, the reason I need it is that I put the chartlistbox non-visible. I tried to replace the legend with the chartlistbox, but visually it's not good due to that highlighted selection so I hide it.