Z zxygraphics Unregistered / Unconfirmed GUEST, unregistred user! 2003-06-08 #1 夜不能寐——在panel上动态(批量)生成的label怎样清除???谢谢了! [blue][/blue]
Q qince Unregistered / Unconfirmed GUEST, unregistred user! 2003-06-08 #2 如果要释放,可以检查Form中的所有Label,如果其Parent是panel就释放 var i: Integer; begin for i := 0 to ComponentCount - 1 do begin if Components is TLabel then if (Components as TLabel).Parent = Panel1 then (Components as TLabel).Free; end; end;
如果要释放,可以检查Form中的所有Label,如果其Parent是panel就释放 var i: Integer; begin for i := 0 to ComponentCount - 1 do begin if Components is TLabel then if (Components as TLabel).Parent = Panel1 then (Components as TLabel).Free; end; end;