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

发送用户自定义状态栏文本事件,必须设置Iniset的值,SendStatustTextEvent=Y,才会发送.

IDL
CString Mx_SendStatustText(DOUBLE dX, DOUBLE dY, DOUBLE dZ);

例如: C#

     private void axMxDrawX1_CustomEvent(object sender, AxMxDrawXLib._DMxDrawXEvents_CustomEventEvent e)
        {
            if (e.sEventName == "Mx_SendStatustText")
            {
                MxDrawResbuf param = (MxDrawResbuf)axMxDrawX1.CustomEventParam();
                double dX = param.AtDouble(0);
                double dY = param.AtDouble(1);
                double dZ = param.AtDouble(2);

                string sTxt = "MY:" + dX.ToString() + "," + dY.ToString() + "," + dZ.ToString();

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