procedure TForm1.Button1Click(Sender: TObject);
var
I: Integer;
Temp: TComponent;
begin
for I := 0 to ComponentCount - 1 do
begin
Temp := Components[I];
if (Temp is TPanel) then
if (Temp as TPanel).Color = clBlue then
ShowMessage('Tag: ' + IntToStr((Temp as TPanel).Tag));
end;
for I := 0 to ComponentCount - 1 do
begin
Temp := Components[I];
if (Temp is TPanel) then
if (Temp as TPanel).Tag = 105 then
(Temp as TPanel).Color := clBlue;
end;
end;
I:integer;
begin
for I:=0 to ComponentCount-1 do
if components[I] is tpanel then
begin
if tpanel(components[I]).tag=105 then tpanel(components[I]).color:=clblue;
if tpanel(components[I]).color=clblue then showmessage('Tag :'+inttostr(tpanel(components[I]).tag));
end;
" Her bildiğin doğru olsun. Ama her doğruyu her yerde söylemek doğru değildir. "