where is OnChangeSelectedSeries event of TChartListBox

TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
Post Reply
Fang
Newbie
Newbie
Posts: 66
Joined: Wed Oct 13, 2004 4:00 am

where is OnChangeSelectedSeries event of TChartListBox

Post by Fang » Thu Apr 06, 2006 1:31 am

hi,
I couldn't figure out where can I capture event like OnChangeSelectedSeries and OnAddSeries at TChartListBox.

Thanks.

Fang

Pep
Site Admin
Site Admin
Posts: 3299
Joined: Fri Nov 14, 2003 5:00 am
Contact:

Post by Pep » Tue Apr 11, 2006 1:22 pm

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;

Fang
Newbie
Newbie
Posts: 66
Joined: Wed Oct 13, 2004 4:00 am

Post by Fang » Tue Apr 11, 2006 2:35 pm

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.

Post Reply