www.mxdraw.com
内容索引主面
前一个向上下一个
MxDrawXCustomEvent::Mx_UserTimerEx 方法

用户自定义时钟事件.调用Mx_StartUserTimerEx,Mx_StopUserTimerEx开始或结束一个事件.

IDL
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);
                }
            };
Copyright (c) 2010. All rights reserved.
你认为该帮助怎么样? 发送反馈信息!