michaenh
asked on
TComponent(TLabel change font size)
Hi
I want to change all my Tlabel's font size to 9. How can I do that instead of going to each labels and change its property field. Each label have different names.. so I can use the FindComponent
ex.
var
i: Integer;
begin
for i := 1 to 20 do begin
with TLabel(FindComponent(Label + IntToStr(i))) do
Font := 9;
end;
Many thanks and cheers,
mha
I want to change all my Tlabel's font size to 9. How can I do that instead of going to each labels and change its property field. Each label have different names.. so I can use the FindComponent
ex.
var
i: Integer;
begin
for i := 1 to 20 do begin
with TLabel(FindComponent(Label
Font := 9;
end;
Many thanks and cheers,
mha
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
The pleasure was mine :-)
ASKER
You are the greatest!
:) cheers
mha