以下是引用吹水佬在2020-7-25 16:14:05的发言:
DECLARE LONG PostMessage IN User32 LONG, LONG, LONG, LONG
#DEFINE MY_MSG 0x401
of = CREATEOBJECT("form1")
of.show(1)
RETURN
DEFINE CLASS form1 as Form
ADD OBJECT text1 as textbox WITH left=10,top=10,SelectOnEntry=1
ADD OBJECT text2 as textbox WITH left=10,top=40
PROCEDURE init
BINDEVENT(this.hWnd, MY_MSG, this, "myMsg")
ENDPROC
PROCEDURE myMsg(hWnd, uMsg, wParam, lParam)
this.text1.setfocus
ENDPROC
PROCEDURE text1.lostfocus
thisform.text2.value = thisform.text1.value
PostMessage(thisform.hWnd, MY_MSG, 0, 0)
ENDPROC
ENDDEFINE
呃,大佬,我再问个题外的问题,我用modi form做的表单,有没有办法把它变成像您这样的PRG程序?