www.mxdraw.com
|
用户自定义时钟事件.调用Mx_StartUserTimerEx,Mx_StopUserTimerEx开始或结束一个事件.
VOID Mx_UserTimerEx(LONG lid);
例如: JS
draw.ImplementCustomEvent = function CustomEvent(sEventName) { if (sEventName == "Mx_UserTimer") { // 211 212 213是需要旋转实体的句柄. RotateEnt(new Array('212', '213')); } else if (sEventName == "Mx_UserTimerEx") { var param = draw.CustomEventParam(); var id = param.AtLong (0); if(id == 1) { RotateEnt(new Array('211')); } //draw.CallLongParam1("Mx_StopUserTimerEx", 1); } };