[lazarus] Font and Color

Armin Diehl diehl at nordrhein.de
Sun Sep 14 08:14:12 EDT 2003


Hi,

how can i change the font and color i.e. for a TLabel. In VCL the 
following code works while in lazarus it does nothing:

procedure TForm1.Button2CLICK(Sender: TObject);
begin
   Label1.Font.Color := clRed;
   Label1.Font.Size := 16;
end;

In the object inspector it is also not possible to change font attributes.

Current CVS Version compiled with 1.0.10 on RedHat 9 (gtk+-1.2.10-25 
installed)

I also tried to compile for gtk2 but i dont have the needed units (i.e. 
gdk2pixbuf.pp)







More information about the Lazarus mailing list