ChartListBox.Color at runtime

TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
Post Reply
Mariano
Newbie
Newbie
Posts: 46
Joined: Fri Nov 15, 2002 12:00 am
Location: España

ChartListBox.Color at runtime

Post by Mariano » Thu Sep 21, 2006 11:39 am

hi,

I'm changing ChartListBox.Color at runtime and the background color is not refresh (repaint).

I tried to call .Invalitade or .repaint. but it doesn't change anything.

I must move a windows on top to provoc a repaint!

Is this a bug? any idea?

thanks in advance

Narcís
Site Admin
Site Admin
Posts: 14730
Joined: Mon Jun 09, 2003 4:00 am
Location: Banyoles, Catalonia
Contact:

Post by Narcís » Fri Sep 22, 2006 11:10 am

Hi Mariano,

This is a bug (TV52011761) which I've added to our defect list to be fixed for future releases. In the meantime, a workaround is hidding the control and making it visible again after assigning the color so that it's fully repainted:

Code: Select all

procedure TForm1.FormCreate(Sender: TObject);
var i: Integer;
begin
  for i:=0 to Chart1.SeriesCount-1 do
    Chart1[i].FillSampleValues(); 

  ChartListBox1.Color:=clYellow;
end; 

procedure TForm1.Button1Click(Sender: TObject);
begin
  With ChartListBox1 do
  begin
    Color:=clLime;
    Visible:=false;
    Visible:=true;
  end;
end;
Best Regards,
Narcís Calvet / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

Post Reply