• 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. Bindkeys to switch input for form

Stats

  • Locked Locked
  • Replies 5
  • Subscribers 144
  • Views 14354
  • 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

Bindkeys to switch input for form

kbhow
kbhow over 16 years ago

Hi,

 I'm looking for a skill code which able to switch the input string for the form by using bindkeys.

For example,  i created a form for some rule checks. And user are able to input the data in the reserve string field. Upon finish, all form's data will be store in a table. When next time user invoke the form again, they can use bindkey <key> up and <key> down to check for history.

Thanks

 

  • Cancel
  • Andrew Beckett
    Andrew Beckett over 16 years ago

    You can't define bindkeys for forms, but perhaps instead you want to use a "combo box" widget?  This is created using hiCreateComboField() - and allows both a list of cyclic choices (which could be your history) and a type in field.

    Regards,

    Andrew.

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • ahamlett
    ahamlett over 16 years ago
    If you just want to change a string field in a form with a bind key, you can set the bind key to:

    'myForm->myStringField->value = "new string value"
    changing 'myForm to your form symbol and myStringField to the name of your string field in the form.

    If you want to restore a string that was previously reserved or saved by the form into your database then write a function to set 'myForm->myStringField->value to the saved string and call that function from the bindkey such as:
    myFunction("up") ; moves up through history
    myFunction("down") ; moves down through history
    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • rajeshcad
    rajeshcad over 16 years ago

    Entry part can be string field. Implement the history part as a report field (hiCreateReportField). It will be a scrollable, sortable field.

     

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • kbhow
    kbhow over 16 years ago

    Hi all,

     Thanks for the prompts reply.  : -)

    Andrew do hit the point that i'm facing. When a form is up, the bindkeys will not working unless the active window is switch to other window. Especially when i trying to use bindkey to change the string's data.

    Let me try on hiCreateComboField and hiCreateReportField.

    Thanks. Cheer

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • kbhow
    kbhow over 16 years ago

    Cool...

    It works. I create a function and assign it to <key>up and <key>down to callback for input history. And use function hiCreateComboField to create the string field. It works perfectly.

    Thanks guy.

    • 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