• 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. One click pan

Stats

  • Locked Locked
  • Replies 3
  • Subscribers 143
  • Views 13912
  • 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

One click pan

kurahape
kurahape over 15 years ago

I would like to bind my mouse wheel click to the pan function.  I'm not sure how to get the location of the mouse wheel click to the hiPan() function.

Thanks,

Peter

  • Cancel
  • dmay
    dmay over 15 years ago

    Try this: 

    hiPan(hiGetCurrentWindow() hiGetCommandPoint())

    More specifically:

    hiSetBindKey("Layout" "<Btn2Down>" "hiPan(hiGetCurrentWindow() hiGetCommandPoint())")

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • Andrew Beckett
    Andrew Beckett over 15 years ago

    Peter,

    The way this would normally be to bind <Btn4Down> to geScroll(nil "n" nil) and <Btn5Down> to geScroll(nil "s" nil) (and maybe the shift<Btn4Down> to a scroll w and e respectively. Not quite a pan, but probably a bit more intuitive.

     hiPan(hiGetCurrentWindow() hiGetCommandPoint())

    would do what you're asking, but if you try it, the behaviour is extremely weird! It's the kind of thing that is fine for a single key press, but not sure it makes any sense for a scroll wheel.

    Regards,

    Andrew.

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • skillUser
    skillUser over 15 years ago

     Have you considered or tried the mouse gestures (a.k.a."strokes") which can be entered while pressing the right mouse button down and drawing in the Layout or Schematic window?  You will need to load a few files to set this up, something like the following should work:

    
      setSkillPath( append( list(prependInstallPath("etc/sted")) getSkillPath()))
    
      load("stroke.il")
    
      load("defstrokes.il")
    
      hiLoadStrokeFile("def.strokes" "Layout")
    
    

    Now you can draw with the right mouse button depressed to make stroke shapes or mouse gestures in the Layout window (it can work for Schematic and Symbol too). A straight line to the right or to the left will pan, likewise for a stroke up or down. A "w" shape will do a "window fit" operation and so on. There is an executable, "stroke_editor" (for the IC61x releases, for older releases you might be able to use "sted" instead [excuse the pun]) which can be used to view or (re)define the strokes.

    Hope this helps you and anyone else interested in strokes.

    regards,

    Lawrence.

    • 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