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

awvGetHiWindow

awvGetHiWindow(
w_windowID
)
=> t / nil

Description

Returns the ID of the waveform HI window corresponding to the specified Waveform window ID.

This function is primarily used to customize menu using HI calls.

Arguments

w_windowID

Waveform window ID.

Value Returned

w_HIWindowID

Returns the HI window ID.

nil

Indicates 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 message is printed in CIW when you click Item1 from the Test menu.

println("Item 1 Selected")
"Item 1 Selected"

The following message is printed in CIW when you click Item2 from the Test menu.

println("Item 2 Selected")
"Item 2 Selected"

Return to top
 ⠀
X