Event: OnBeforeShowSuggestions() as Boolean
This event gets fired before a suggestion window is shown. The Document property Suggestions contains a string array that is recommended to the user. It is possible to modify the displayed recommendations during this event. Before doing so you have to assign an empty array to the Suggestions property. The best location for this is the OnDocumentOpened event. To prevent the suggestion window to show up return false and true to continue its display.
Given below are examples of how this event can be scripted.
XMLSpy scripting environment - VBScript:
XMLSpy scripting environment - JScript:
XMLSpy IDE Plugin:
IXMLSpyPlugIn.OnEvent (33, ...) // nEventId = 33
© 2018 Altova GmbH