Altova XMLSpy 2024 Enterprise Edition

Superseded by parameters to

AuthenticView.OnMouseEvent (On_AuthenticView_MouseEvent)

AuthenticView.OnBeforeDrop (On_AuthenticView_BeforeDrop)

AuthenticView.OnDragOver (On_AuthenticView_DragOver)

 

The event object that holds the information of the last event is now replaced by parameters to the different event handler functions to simplify data access. The event object will be supported for a not yet defined period of time for compatibility reasons. No improvements are planned. It is highly recommended to migrate to the new event handler functions.

 

With the new event handler function, a range object selecting this element is provided instead of the XMLData element currently below the mouse cursor.

 

// ----- XMLSpy scripting environment - javascript sample -----

// instead of:

// function On_DocEditMouseMove ()

// {

//     var objEvent = Application.ActiveDocument.DocEditView.event;

//     if (objEvent.srcElement != null)

//         MsgBox ("moving over " + objEvent.srcElement.Parent.Name);

// }

// use now:

function On_AuthenticView_MouseEvent (long i_nXPos, long i_nYPos, SPYMouseEvent i_eMouseEvent, IAuthenticRange *i_ipRange)

{

  if ((i_eMouseEvent & spyMouseMoveMask) &&

       (i_ipRange != null))

       MsgBox ("moving over " + i_ipRange.FirstXMLData.Parent.Name);

}

 

 

Declaration: srcElement as Variant

 

Description

Element which fires the current event. This is usually an XMLData object.

 

 

 

© 2017-2023 Altova GmbH