• 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 open pdf file from menu option

Stats

  • Locked Locked
  • Replies 2
  • Subscribers 143
  • Views 8678
  • 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 open pdf file from menu option

Drake96
Drake96 over 3 years ago

Hello, 

i have written small script to create menu items- 

(let (item1 item2)
item1 = (hiCreateMenuItem
?name (gensym)
?itemText "Click me..."
?callback "(println \"ooops...I just got clicked!\")" )
item2 = (hiCreateMenuItem
?name (gensym)
?itemText "Never click me!"
?callback "(println \"I told you not to click me didn't I?\")")

playMenu = (hiCreatePulldownMenu
(gensym)
"CADENCE"
(list item1 item2))

slider = (hiCreateSliderMenuItem
?name (gensym)
?itemText "Slider Example"
?subMenu playMenu
)

(hiAddMenuItem ciwOptionsMenu slider))

It is creating slider menu...1)How can i create menu under menu..Suppose i want test menu under "Never click me!" menu..How can i do it?

2) Also how can open pdf file which is in CWD...so that when i press "Click me..." menu item ...pdf file should open?is there any example for it

Kind regards,
Drake

  • Cancel
Parents
  • Andrew Beckett
    Andrew Beckett over 3 years ago

    Seriously? The code shows how to create slider menus, and you're asking how to create a further slider menu? All you need to do is create the menu, create the slider item, and then include that slider item in your menu. It's really not hard and the code above shows exactly all the functions you need to do this.

    You're also asking how to open a PDF file. Can't you work it out from my answer to your question the other day? The callback for your menu item would just be "MyHelpCB()" or something similar.

    Andrew

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • Drake96
    Drake96 over 3 years ago in reply to Andrew Beckett

    Andrew,thanks
    It resolves !:)

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
Reply
  • Drake96
    Drake96 over 3 years ago in reply to Andrew Beckett

    Andrew,thanks
    It resolves !:)

    • 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