delphi 中怎么 让某个 Components 不显示

2025-02-27 06:46:29
推荐回答(1个)
回答1:

Var
    i: integer;
begin
  for i:=0 to Form1.ComponentCount-1 do
  begin
    if Components[i] is TWinControl then
      TWinControl(Components[i]).Visible := False;
  end;
  
end;