Y ybsnui Unregistered / Unconfirmed GUEST, unregistred user! 2001-08-05 #1 如何使得程序启动后初始状态的所有菜单按键均为灰色(即不可用状态)?又如何使它们恢复???
Y ybsnui Unregistered / Unconfirmed GUEST, unregistred user! 2001-08-05 #3 我知道是Enable属性,但如果部件多的话,难道要一个个设置,不能批处理或者统统一次设定吗?
K K Unregistered / Unconfirmed GUEST, unregistred user! 2001-08-05 #6 procedure TForm1.a; var i:integer; begin for i:=0 to componentcount-1 do if components is Tedit then TEdit(components).Enabled:=false; end;
procedure TForm1.a; var i:integer; begin for i:=0 to componentcount-1 do if components is Tedit then TEdit(components).Enabled:=false; end;