• Skip to main content
  • Skip to search
  • Skip to footer
Cadence Home
  • This search text may be transcribed, used, stored, or accessed by our third-party service providers per our Cookie Policy and Privacy Policy.

  1. Community Forums
  2. Custom IC Design
  3. Where is my menu

Stats

  • Locked Locked
  • Replies 2
  • Subscribers 129
  • Views 13931
  • Members are here 0
This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Where is my menu

bobbygang
bobbygang over 14 years ago

Hi Andrew,
  I wrote a menu interface sricpt and I loaded it in .cdsinit. But when CIW open, the variable of the sript is loaded but the menu doesn't appeared. But if I load it in CIW, the menu will appear. That's why?
  Here is my code:

hiOpenWindow()
;;; creating the "Raise Current Window" menu item
LibraryMenu= hiCreateMenuItem(
?name 'LibraryMenu
?itemText "Library Manager"
?callback "hiRaiseWindow( hiGetCurrentWindow() )"
)
AnalysisMenu = hiCreateMenuItem(
?name 'AnalysisMenu
?itemText "Analysis"
?callback "hiRaiseWindow( hiGetCurrentWindow() )"
)
Parameter1 = hiCreateMenuItem(
?name 'Parameter1
?itemText "Simulation"
?callback "ff=2"
)
Parameter2  = hiCreateMenuItem(
?name 'Parameter2
?itemText "Circuit Type"
?callback "hiRaiseWindow( hiGetCurrentWindow() )"
)
Parameter3  = hiCreateMenuItem(
?name 'Parameter3 
?itemText "Schematic Variable Initialization"
?callback "hiRaiseWindow( hiGetCurrentWindow() )"
)
ParameterSubMenu = hiCreatePulldownMenu(
'ParameterSubMenu
""
list( Parameter1  Parameter2  Parameter3 )
"" ;;; empty help string
) ; hiCreatePulldownMenu
ParameterMenu= hiCreateSliderMenuItem(
?name 'ParameterMenu
?itemText "Parameter"
?subMenu ParameterSubMenu
)
;;; creating the Navigation pulldown menu
hiCreatePulldownMenu(
'trPulldownMenu ;;; menu handle
"Ocean" ;;; menu title
list(LibraryMenu ParameterMenu AnalysisMenu)
"" ;;; empty help string
) ; hiCreatePulldownMenu
;;; inserting the pulldown menu in the CIW
hiInsertBannerMenu(
window( 1 )
trPulldownMenu
0)

Best Regards,
Bobby

  • Cancel
  • Andrew Beckett
    Andrew Beckett over 14 years ago

    Bobby,

    Make sure you call ciwMenuInit() before doing the hiInsertBannerMenu - that will ensure that the CIW menus have been initialized (normally this happens after the .cdsinit has been loaded, but explicitly calling makes it happen earlier).

    Not sure what the hiOpenWindow() is for in your code though.

    Regards,

    Andrew.

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • bobbygang
    bobbygang over 14 years ago

    Hi Andrew,

       Thank you very much!!! I have a holiday before so I answer you until now. I use your method and the menu appears. It's useful.

       Besides,hiOpenWindow() is another program of the il file. I just forgot  deleting it.

    Regards,

    Bobby

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel

Community Guidelines

The Cadence Design Communities support Cadence users and technologists interacting to exchange ideas, news, technical information, and best practices to solve problems and get the most from Cadence technology. The community is open to everyone, and to provide the most value, we require participants to follow our Community Guidelines that facilitate a quality exchange of ideas and information. By accessing, contributing, using or downloading any materials from the site, you agree to be bound by the full Community Guidelines.

© 2025 Cadence Design Systems, Inc. All Rights Reserved.

  • Terms of Use
  • Privacy
  • Cookie Policy
  • US Trademarks
  • Do Not Sell or Share My Personal Information