TextView.OnBeforeShowSuggestions

www.altova.com このトピックを印刷 前のページ 1つ上のレベル 次のページ

ホーム >  プログラマーのレファレンス > Application API > Interfaces > TextView > Events >

TextView.OnBeforeShowSuggestions

See also

 

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

 

 


(C) 2018 Altova GmbH