Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2003-09

Font and Color

2 messages · 2 people ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Armin Diehl

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)

Reply by email

Mattias Gaertner
to Armin Diehl
Show quoted text 9 lines
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.

Show quoted text 9 lines
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 lcl/interfaces/gtk2/README.

Mattias

Reply by email