VFP修改控件属性值时,会不会触发什么方法?
VFP修改控件属性值时,会不会触发什么方法?例如:
程序修改text的Enabled的属性。
of = CREATEOBJECT("form1") of.show(1) CLEAR ALL RETURN DEFINE CLASS form1 as Form ADD OBJECT txt1 as text1 WITH left=10,top=10 ADD OBJECT cmd1 as commandbutton WITH left=120,top=10 PROCEDURE cmd1.click thisform.txt1.enabled = !thisform.txt1.enabled ENDPROC ENDDEFINE DEFINE CLASS text1 as textbox Visible = 1 PROCEDURE enabled_ACCESS RETURN this.enabled ENDPROC PROCEDURE enabled_ASSIGN(tAssign) this.enabled = tAssign ENDPROC ENDDEFINE