CAD controls hyperlink events (web version)

_DMxDrawXEvents::HyperlinkClick


Have a physical hyperlink is clicked.


parameter Explanation

IDispatch * pEntity

IMxDrawEntity, clicked entity

DOUBLE dX

Click position X, the document coordinates

DOUBLE dY

Click on location Y, the coordinates of the document

LONG* pRet

Successful return to 1, * pRet = 1


js code to achieve:


 document.getElementById("MxDrawXCtrl").ImpHyperlinkClickFun = DoHyperlinkClickFun;

                function DoHyperlinkClickFun(ent, dX, dY) {
                    mxOcx.GotoURL(ent.Hyperlinks);
                    mxOcx.SetEventRet(1);
                }

Guess you like

Origin www.cnblogs.com/yzy0224/p/11083228.html