Altova XMLSpy 2025 Enterprise Edition

TextView.OnBeforeShowSuggestions

Home Prev Top Next

Event: OnBeforeShowSuggestions() as Boolean

 

Description

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.

 

Examples

Given below are examples of how this event can be scripted.

 

XMLSpy scripting environment - VBScript:

Function On_BeforeShowSuggestions()

End Function

 

XMLSpy scripting environment - JScript:

function On_BeforeShowSuggestions()

{

}

 

XMLSpy IDE Plugin:

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

 

 

© 2018-2024 Altova GmbH