Altova XMLSpy 2025 Enterprise Edition

Event: OnBeforeDrag() as Boolean

 

XMLSpy scripting environment - VBScript:

Function On_BeforeDrag()

 ' On_BeforeStartEditing = False  ' to prohibit dragging

End Function

 

XMLSpy scripting environment - JScript:

function On_BeforeDrag()

{

 // return false;  /* to prohibit dragging */

}

 

XMLSpy IDE Plugin:

IXMLSpyPlugIn.OnEvent (4, ...)        // nEventId = 4

 

Description

This event gets fired on an attempt to drag an XMLData element on the grid view. Return false to prevent dragging the data element to a different position.

 

© 2018-2024 Altova GmbH