一个按钮把:
   太多控件在PANEL 里了,
   我想一性把里边的控件设成ENABLED := TRUE   请跟贴.

解决方案 »

  1.   

    ctrl+alt=鼠标左键选中所有控件,在F11
      

  2.   

    如果是在设计的时候,只要全部选中,然后就可以更改了。
    如果是在运行时,可如下设置:
    for I:=0 to ComponentCount - 1 do
    begin
      if Components[I] is TEdit then
        TEdit(Components[I]).Enabled := true
      if Components[I] is TLabel then
        TLabel(Components[I]).Enabled := true;
    end;
      

  3.   

    TO 小刀
      如果把该PANEL 里 所有控件设成 ENABLED := TRUE   如何 ??
      

  4.   

    Panel1.Enabled = False;
    就行了
      

  5.   

    同意 Intelement(智能元素) 的