Hi,
i have updated Lazarus at the last SVN revision.
I have a form with a ListBox. I want color the ListBox with the same Form's color. I've tried with this code but it does nothing:
procedure TForm1.FormCreate(Sender:TObject);
var OldColor, NewColor:TColor;
begin
OldColor:=ListBox1.Color;
ListBox1.Color:=Form1.Color;
NewColor:=ListBox1.Color;
if OldColor <> NewColor then begin
ShowMessage('Ok !!!');
end;
end;
How i can do it? It's a bug of the new implemantation of "clDefault"?
Thanks in advance, Mario