var
i:integer;
btnRef:TButton;
begin
for i:=0 to Form1.ComponentCount-1 do
if Form1.Components is TButton then
begin
btnRef:=Form1.Components as Tbutton;
btnRef.Height:=50;
btnRef.Width:=150;
end;
end;
var
i:integer;
begin
for i:=0 to Form1.ComponentCount-1 do
if Form1.Components is TButton then
with (Form1.Components as Tbutton) do
begin
Height:=50;
Width:=150;
end;
end;