www.mxdraw.com
|
对象动态提示事件回调函数指针
[id(262) , helpstring("property ImpInputPointToolTipFun")]
IDispatch* ImpInputPointToolTipFun;
例如:JS
function DoInputPointToolTipFun(ent) { var sHyperlinks = ent.Hyperlinks; if(sHyperlinks.length != 0) { var sClassName = ent.ObjectName; var tip = "<ct=0x0000FF><al_c>"+sClassName+ "<br><ct=0x00AA00><hr=100%></ct><br><a="link">" + sHyperlinks + "</a>"; mxOcx.SetEventRetString(tip); } ent = null; CollectGarbage(); }