www.mxdraw.com
内容索引主面
前一个向上下一个
_DMxDrawX::ImpGetGripPointsFun 数据 成员

得到自定义实体夹点事件回调函数指针

IDL
[id(243) , helpstring("property ImpGetGripPointsFun"), hidden, nonbrowsable]
IDispatch* ImpGetGripPointsFun;

例如: JS

        function GetGripPointsFun(pCustomEntity) {

            var sGuid = pCustomEntity.Guid;
            if (sGuid == "TestMxCustomEntity") {
                if (!pCustomEntity.IsHave("ept"))
                    return;

                var stp = pCustomEntity.GetPoint("spt");
                if (stp == null)
                    return;

                var ept = pCustomEntity.GetPoint("ept");
                if (ept == null)
                    return;

                var ret = mxOcx.NewResbuf();

                ret.AddPoint(stp);
                ret.AddPoint(ept);

                mxOcx.SetEventRetEx(ret);
            }
        }
Copyright (c) 2010. All rights reserved.
你认为该帮助怎么样? 发送反馈信息!