• 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. scrolling and zoom with mouse wheel

Stats

  • Locked Locked
  • Replies 4
  • Subscribers 144
  • Views 18476
  • 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

scrolling and zoom with mouse wheel

NoelCFC
NoelCFC over 9 years ago

Hi,

I'm found the following codes on the forum to zoom in/out and to scroll with the mouse wheel:

to zoom in/out:

    hiSetBindKey( "Schematics"    "None<Btn4Down>"     "hiZoomInAtMouse()")
    hiSetBindKey( "Schematics"    "None<Btn5Down>"     "hiZoomInAtMouse()")

to scroll:

    hiSetBindKey("Schematics" "<DrawThru2>" "let((WIN mySnap)     WIN=hiGetCurrentWindow() mySnap=WIN~>segSnapMode WIN~>segSnapMode=\"anyAngle\" hiVectorPan() WIN~>segSnapMode=mySnap)")

with these codes, the zoom works with the mouse wheel and the scrolling with the Ctrl-mouse wheel.

Is there a way to make the zoom work with the Ctrl-mouse wheel and the scrolling with the mouse wheel?

thanks in advance.

best regards,

  • Cancel
  • psill000
    psill000 over 9 years ago

    Try this

     hiSetBindKey("Schematics" "Ctrl<Btn4Down>" "geScroll(nil \"e\" nil)")
     hiSetBindKey("Schematics" "Ctrl<Btn5Down>" "geScroll(nil \"w\" nil)")

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • NoelCFC
    NoelCFC over 9 years ago

    hi, psill000.

    Thanks for the reply.

    I tried your suggestion but it didn't work.

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • psill000
    psill000 over 9 years ago

    Switching the modifier does not work?

    to Zoom:
    hiSetBindKey("Schematics" "Ctrl<Btn4Down>" "hiZoomRelativeScale(hiGetCurrentWindow() 0.5)")
    hiSetBindKey("Schematics" "Ctrl<Btn5Down>" "hiZoomRelativeScale(hiGetCurrentWindow() 2.0)")

    to Scroll:
    hiSetBindKey("Schematics" "<Btn4Down>" "geScroll(nil \"e\" nil)")
    hiSetBindKey("Schematics" "<Btn5Down>" "geScroll(nil \"w\" nil)")
    hiSetBindKey("Schematics" "Shift<Btn4Down>" "geScroll(nil \"n\" nil)")
    hiSetBindKey("Schematics" "Shift<Btn5Down>" "geScroll(nil \"s\" nil)")

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • NoelCFC
    NoelCFC over 9 years ago

    Hi, psill000.

    thanks again for the reply.

    Yeah. now it works. I don't know why it didn't work the first time!

    thanks very much.

    • 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