www.mxdraw.com
|
控件的用户自定义事件回调函数指针,多用于js脚本使用
[id(92) , helpstring("property ImplementCustomEvent")]
IDispatch* ImplementCustomEvent;
例如: JS下的代码
<script> function CustomEvent(sEventName) { if(sEventName == "Mx_UpdateDisplay") { // 视区更新 // alert("Mx_UpdateDisplay"); var eventParam = document.getElementById("MxDrawXCtrl1").CustomEventParam(); if(eventParam.AtLong(0) == 1) { alert("更新显示缓存"); } } } document.getElementById("MxDrawXCtrl1").ImplementCustomEvent = CustomEvent; </script>