• 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. hiCreateAppForm carriage return action

Stats

  • Locked Locked
  • Replies 2
  • Subscribers 143
  • Views 14263
  • 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

hiCreateAppForm carriage return action

thomas1000
thomas1000 over 12 years ago

I have a form that kicks off a lengthy process.  I have it set up with OK, Cancel, and Default buttons.  I implemented my own "Default" button so the button specification is:  '(OKCancel (Defaults "AFDefCallBack(hiGetCurrentForm())")

Because the process is lengthy and it is easy for a user to hit carriage return thinking that he is moving on to the next field.  Is there a way to disable the automatic "OK" response for carriage return so that they can finish filling out the form rather than kicking off the process?

  • Cancel
  • Andrew Beckett
    Andrew Beckett over 12 years ago

    Actually carriage return does not do an automatic "OK" response; in fact it triggers the "default" button for the form - i.e. the one in Red - the one that is first. So for example, if I define the button layout differently, I can get a different button to fire - one different from the OK button:

    hiCreateAppForm(?name 'fred ?fields list(hiCreateStringField(?name 'jim)) ?callback "println(1234)" ?buttonLayout '(Empty (Defaults "println(5678)") (OK "hiFormClose(hiGetCurrentForm())") (Cancel "hiFormCancel(hiGetCurrentForm())")))
    hiDisplayForm(fred)

    Of course, this example is silly - but you'll see that carriage return triggers the "Defaults" button rather than "OK" now. You could make that first button do something non-time consuming but still useful.

    Regards,

    Andrew.

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • thomas1000
    thomas1000 over 12 years ago

    OK.  I had thought of doing something like that but if I had missed a form feature that disables carriage return response I wanted to know about it.  Your suggestion is good.  Thanks.

    • 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