www.mxdraw.com
|
发送用户自定义状态栏文本事件,必须设置Iniset的值,SendStatustTextEvent=Y,才会发送.
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); } }