awvInitWindowFunctionGet
awvInitWindowFunctionGet( ) =>l_initFunctionList/nil
Description
Returns a list of names of initialization functions that are currently added to the list of functions that are called when a Waveform window is opened.
This list is empty by default.
Arguments
Value Returned
Examples
The following example adds a procedure myCreateMenu, which creates a new banner menu Test in the Results Browser. The Test menu has two options, Item1 and Item2.
-
When you click Item1, the message "
Item 1 Selected" is printed in the CIW. -
When you click Item2, the message "
Item 2 Selected" is printed in the CIW.
myCreateMenu
=> t
windowId=awvGetHiWindow(awvGetCurrentWindow())
procedure(
myCreateMenu(windowId)
win=awvGetHiWindow(windowId)
let((item1 item2)
item1=hiCreateMenuItem(
?name 'item1
?itemText "Item1"
?callback "println(\"Item 1 Selected\")"
)
item2=hiCreateMenuItem(
?name 'item2
?itemText "Item2"
?callback "println(\"Item 2 Selected\")"
)
hiCreatePulldownMenu( 'myMenu "Test" list(item1 item2))
hiInsertBannerMenu(win myMenu hiGetNumMenus(win))
)
)
awvInitWindowFunctionAdd('myCreateMenu)
=> myCreateMenu
=> t
The following example returns a list of names of the initialization functions for Waveform Windows.
awvInitWindowFunctionGet()
=> (myCreateMenu)
The following example deletes the initialization function myCreateMenu from the list of functions that are called when a new Waveform window is opened.
awvInitWindowFunctionDel('myCreateMenu)
=> t
Now, the function awvInitWindowFunctionGet returns nil because the initialization function myCreateMenu has been deleted.
awvInitWindowFunctionGet()
=> nil
Return to top