[lazarus] Font and Color

Mattias Gaertner nc-gaertnma at netcologne.de
Sun Sep 14 08:56:07 EDT 2003

On Sun, 14 Sep 2003 14:29:33 +0200
Armin Diehl <diehl at nordrhein.de> wrote:

> 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;

Not implemented yet. Please try TStaticText instead of TLabel.

> 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)

The gtk2 interface is under construction. If you want to help, see


More information about the Lazarus mailing list