• 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. Add custom buttons to form

Stats

  • Locked Locked
  • Replies 1
  • Subscribers 143
  • Views 11633
  • 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

Add custom buttons to form

dragank
dragank over 4 years ago

Hi, all..

I am trying to add custom buttons to "hiCreateAppForm".

Here is what i did:

?buttonLayout '('Empty '('Plot 'plotAL) '('Cancel 'cancelAL))

But this gives me an error:

*** Error in routine error:
Message: *Error* hiCreateAppForm: first arg must be a symbol specifying the base button list

Entering new debug toplevel due to error:

I tried to follow skuiref.pdf but it seeme that I am Missing the format.

Thank you in advance.

  • Cancel
  • Andrew Beckett
    Andrew Beckett over 4 years ago

    You have way too many quotes in that list. Once a list is quoted, everything within it is literal and there's no need to embed further quotes for the literal items within the list. In fact if you do, you're embedding the quote function. So what you have is equivalent to:

    ((quote Empty)
     (quote
      ((quote Plot)
       (quote plotAL)
      )
     )
     (quote
      ((quote Cancel)
       (quote cancelAL)
      )
     )
    )

    All you need is:

    ?buttonLayout '(Empty (Plot plotAL) (Cancel cancelAL))

    Do note that the documentation does say:

    Specify either OK, Close, or Quit as one of the button names in your list of custom buttons so the form can be closed. You can use hiFormClose() as the callback for these buttons.

    You may not be able to remove your form otherwise. With KDE I can use the "X" on the form to close it, but not all window managers offer such an ability. Or your button callbacks could call hiFormCancel within them, but that won't keep the values you've entered for next time (if you're displaying the form multiple times).

    Andrew

    • 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