program test;
uses
Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs,
StdCtrls, ScriptEvent;
var
FormEvent: TCnScriptFormEditorNotify;
begin
if Event = nil then
begin
OutputDebugString('Event = nil');
Exit;
end;
case Event.Mode of
smManual: OutputDebugString('smManual');
smIDELoaded: OutputDebugString('smIDELoaded');
smFileNotify: OutputDebugString('smFileNotify');
smBeforeCompile: OutputDebugString('smBeforeCompile');
smAfterCompile: OutputDebugString('smAfterCompile');
smSourceEditorNotify: OutputDebugString('smSourceEditorNotify');
smFormEditorNotify: OutputDebugString('smFormEditorNotify');
end;
end.
勾上 smBeforeCompile, smAfterCompile
debugview输出内容为:
[2736] smFileNotify
[2736] smBeforeCompile
为什么没有编译后事件触发,用的是0.8.4.415 每日构建版