• 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. Bind the Mouse "right click button" to rotate function.

Stats

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

Bind the Mouse "right click button" to rotate function.

vinayab
vinayab over 14 years ago

 Hi All,

 

How to bind the Mouse "right click button" to rotate function.

 

Regards,

Vinay

  • Cancel
Parents
  • dmay
    dmay over 14 years ago

    The default bindkeys from Cadence should usually work if you are using Cadence commands. The following are Cadence's defaults:

    hiSetBindKey("Schematics" "None<Btn3Down> EF"        "schCmdOption()")
    hiSetBindKey("Symbol" "None<Btn3Down>EF"             "schCmdOption()")
    hiSetBindKey("Layout" "None<Btn3Down> EF"   "cmdOption()")

    If you have your own commands and want to add rotation, then you'll need to write your own "cmdOption" routine. You can do something like this:

    procedure(myCmdOption(@optional (modifier "None"))
        ;; modifier defines the modifier key from the bindkey (ie shift, ctrl, alt, meta)
        case(modifier
            ("None"
                ;; set different commands for different functions here.
                ;; default is Cadences cmdOption
                case(hiGetCurrentCmd(hiGetCurrentWindow())
                        ("My Command"
                            leRotateCB()
                        )
                        (t
                            cmdOption()
                        ) ;t
                    ) ;case
            ) ;None
            ("Shift"
                ;; set different commands for different functions here.
                ;; default is Cadences cmdShiftOption
                case(hiGetCurrentCmd(hiGetCurrentWindow())
                        ("My Command"
                            doSomethingSpecial()
                        )
                        (t
                            cmdShiftOption()
                        ) ;t
                ) ;case
            ) ;shift
        )
    )
    hiSetBindKey("Layout"     "None<Btn3Down> EF"      "myCmdOption(\"None\")")
    hiSetBindKey("Layout"     "Shift<Btn3Down> EF"     "myCmdOption(\"Shift\")")

    Derek

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
Reply
  • dmay
    dmay over 14 years ago

    The default bindkeys from Cadence should usually work if you are using Cadence commands. The following are Cadence's defaults:

    hiSetBindKey("Schematics" "None<Btn3Down> EF"        "schCmdOption()")
    hiSetBindKey("Symbol" "None<Btn3Down>EF"             "schCmdOption()")
    hiSetBindKey("Layout" "None<Btn3Down> EF"   "cmdOption()")

    If you have your own commands and want to add rotation, then you'll need to write your own "cmdOption" routine. You can do something like this:

    procedure(myCmdOption(@optional (modifier "None"))
        ;; modifier defines the modifier key from the bindkey (ie shift, ctrl, alt, meta)
        case(modifier
            ("None"
                ;; set different commands for different functions here.
                ;; default is Cadences cmdOption
                case(hiGetCurrentCmd(hiGetCurrentWindow())
                        ("My Command"
                            leRotateCB()
                        )
                        (t
                            cmdOption()
                        ) ;t
                    ) ;case
            ) ;None
            ("Shift"
                ;; set different commands for different functions here.
                ;; default is Cadences cmdShiftOption
                case(hiGetCurrentCmd(hiGetCurrentWindow())
                        ("My Command"
                            doSomethingSpecial()
                        )
                        (t
                            cmdShiftOption()
                        ) ;t
                ) ;case
            ) ;shift
        )
    )
    hiSetBindKey("Layout"     "None<Btn3Down> EF"      "myCmdOption(\"None\")")
    hiSetBindKey("Layout"     "Shift<Btn3Down> EF"     "myCmdOption(\"Shift\")")

    Derek

    • 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