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

awvInitWindowFunctionDel

awvInitWindowFunctionDel(
u_function
)
=> t / nil

Description

Deletes a function from the list of initialization functions that are called when a new Waveform window is opened.

Arguments

u_function

Function to be deleted from the list of functions that are called when a new Waveform window is opened.

Value Returned

t

Function is deleted from the list.

nil

Function cannot be deleted from the list because of an error.

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