ChartListBox - prevent double selection

TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
moelski
Advanced
Posts: 212
Joined: Mon Apr 23, 2007 12:00 am
Location: Germany
Contact:

Post by moelski » Thu Dec 27, 2007 1:36 pm

Hello !

No idea with Multiselect = False ?

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

Post by Pep » Thu Dec 27, 2007 7:05 pm

Hi,

to change this behaviour you can use the following code :

Code: Select all

procedure TListBoxForm.ChartListBox1Click(Sender: TObject);
begin
Chartlistbox1.UpdateSeries;
end;

moelski
Advanced
Posts: 212
Joined: Mon Apr 23, 2007 12:00 am
Location: Germany
Contact:

Post by moelski » Fri Dec 28, 2007 5:29 am

Hi Pep,

you´r right that helps.

But on the other side you get always a complete series rebuild within the chartlistbox. So it flickers always you click the box.

Hopefully you can fix this error in the next maintanance release.

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

Post by Pep » Fri Dec 28, 2007 9:34 am

Hi Dominik,

yes, it does a repaint. For the moment this is the only way around I can think of.
I 'll add this issue on our bug/wish list. We'll try to add more functionalities to allow to customize the highlight (visible, color, etc..)

Post Reply