按下面事件代码测试了一下:
** this.Load
ASTACKINFO(a程序)
SET DEFAULT TO ADDBS(JUSTPATH(a程序[2]))
STRTOFILE("form.load"+0h0D0A, "tmp.txt")
** this.Init
STRTOFILE("form.init"+0h0D0A, "tmp.txt", 1)
** this.Activate
IF !EMPTY(this.Tag)
RETURN
ENDIF
this.Tag = "1"
STRTOFILE("form.Activate READ EVENTS"+0h0D0A, "tmp.txt", 1)
READ EVENTS
** this.GotFocus
IF this.Tag > "1"
RETURN
ENDIF
this.Tag = "2"
STRTOFILE("form.GoFocus"+0h0D0A, "tmp.txt", 1)
** this.QueryUnload
STRTOFILE("form.QueryUnload CLEAR EVENTS"+0h0D0A, "tmp.txt", 1)
CLEAR EVENTS
** this.Destroy
STRTOFILE("form.Destroy"+0h0D0A, "tmp.txt", 1)
** this.Unload
STRTOFILE("form.Unload"+0h0D0A, "tmp.txt", 1)
**
thisform.Release
STRTOFILE("Command1.Click CLEAR EVENTS"+0h0D0A, "tmp.txt", 1)
CLEAR EVENTS
点窗口标题关闭按钮顺序:
form.load
form.init
form.Activate READ EVENTS
form.GoFocus
form.QueryUnload CLEAR EVENTS
form.Destroy
form.Unload
点Command1关闭按钮顺序:
form.load
form.init
form.Activate READ EVENTS
form.GoFocus
Command1.Click CLEAR EVENTS
form.Destroy
form.Unload
[此贴子已经被作者于2016-1-13 09:20编辑过]