• 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 SKILL
  3. how to add a custom menu to CIW

Stats

  • Locked Locked
  • Replies 6
  • Subscribers 145
  • Views 19607
  • 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

how to add a custom menu to CIW

NcfC
NcfC over 11 years ago
Hi,

I'm using IC5141 and I'm trying to add a custom menu to CIW,


procedure( Menu_CIW()
ciwMenuInit()
menu_ciw = hiCreatePulldownMenu( 'Menu_CIW "CusTools" list( menuItem_1 menuItem_2 menuItem_3 ) )
hiInsertBannerMenu( window(1) menu_ciw 3 )
)

and I've add a line in .cdsinit to load the scripts at startup:

load( "/path/to/script/cmenu.il" )

When icfb starts, it doesn't show the custom menu in the ciw banner. I've also tried to explicitly call the function Menu_CIW() inside .cdsinit, but it also didn't work. It works only if I call the function from the command line in ciw.

Can anyone help me understand why it is not working?

thanks in advance.

best regards,
  • Cancel
Parents
  • Andrew Beckett
    Andrew Beckett over 11 years ago

    Niyaz,

    First of all, posting this in an existing thread (please read the forum guidelines) is not recommended. Secondly, sending me a direct email message 2 minutes after posting this is not going to make me answer it any quicker (especially when I'm on a plane across the Atlantic). In fact it tends to have the opposite effect. If something is that urgent that you need to chase me (when it's not part of my job to respond here - I do it in my spare time), you should contact customer support.

    Anyway, the solution is simple. After adding quotes around the callbacks (so ?callback "f11()"), you need to create slider menu items:

    slider1=hiCreateSliderMenuItem(?name 'slider_CIW1 ?itemText "Menu1" ?subMenu submenu1)
    slider2=hiCreateSliderMenuItem(?name 'slider_CIW2 ?itemText "Menu2" ?subMenu submenu2)
    slider3=hiCreateSliderMenuItem(?name 'slider_CIW3 ?itemText "Menu3" ?subMenu submenu3)

    menu_ciw_top = hiCreatePulldownMenu('Menu_CIW_TOP "Main Menu" list(slider1 slider2 slider3))

    Regards,

    Andrew.

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
Reply
  • Andrew Beckett
    Andrew Beckett over 11 years ago

    Niyaz,

    First of all, posting this in an existing thread (please read the forum guidelines) is not recommended. Secondly, sending me a direct email message 2 minutes after posting this is not going to make me answer it any quicker (especially when I'm on a plane across the Atlantic). In fact it tends to have the opposite effect. If something is that urgent that you need to chase me (when it's not part of my job to respond here - I do it in my spare time), you should contact customer support.

    Anyway, the solution is simple. After adding quotes around the callbacks (so ?callback "f11()"), you need to create slider menu items:

    slider1=hiCreateSliderMenuItem(?name 'slider_CIW1 ?itemText "Menu1" ?subMenu submenu1)
    slider2=hiCreateSliderMenuItem(?name 'slider_CIW2 ?itemText "Menu2" ?subMenu submenu2)
    slider3=hiCreateSliderMenuItem(?name 'slider_CIW3 ?itemText "Menu3" ?subMenu submenu3)

    menu_ciw_top = hiCreatePulldownMenu('Menu_CIW_TOP "Main Menu" list(slider1 slider2 slider3))

    Regards,

    Andrew.

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
Children
No Data

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