Product Documentation
Virtuoso Visualization and Analysis XL SKILL Reference
Product Version IC23.1, November 2023

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

None

Value Returned

l_initFunctionList

A list containing names of initialization functions.

nil

There are no initialization functions.

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.

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
 ⠀
X