mouse scroll wheel

Discussion in 'Cadence' started by tattvamasi, Sep 13, 2005.

  1. tattvamasi

    tattvamasi Guest

    Can we use the mouse middle button(scroll wheel) to set up bindkeys?

    Like for example I would like to use the scroll wheel to scroll
    therough the layout, scroll through CIW content..etc

    Thanks,
    Partha
     
    tattvamasi, Sep 13, 2005
    #1
  2. tattvamasi

    S. Badel Guest

    Can we use the mouse middle button(scroll wheel) to set up bindkeys?

    Yes. You'll have first to map the wheel movement to mouse button events.
    For example I have this in my XF86Config

    Option "ZAxisMapping" "4 5"

    which maps up/down movement to buttons 4 and 5.

    then you can set bindkeys to this buttons as usual.
    ex:

    hiSetBindKey(Application "<Btn5Down>" "geScroll(nil \"s\" nil)")
    hiSetBindKey(Application "<Btn4Down>" "geScroll(nil \"n\" nil)")

    hiSetBindKey(Application "Shift<Btn5Down>" "hiZoomRelativeScale(hiGetCurrentWindow() 0.8)")
    hiSetBindKey(Application "Shift<Btn4Down>" "hiZoomRelativeScale(hiGetCurrentWindow() 1.25)")


    cheers

    stéphane
     
    S. Badel, Sep 14, 2005
    #2
  3. tattvamasi

    tattvamasi Guest

    Thanks stephane! That works!

    Partha
     
    tattvamasi, Sep 14, 2005
    #3
  4. tattvamasi

    tattvamasi Guest

    All,
    Is there an equivalent bindkeys for CIW?
    Would be very usefull to scroll through the CIW

    Thanks,
    Partha
     
    tattvamasi, Sep 16, 2005
    #4
  5. tattvamasi

    jorobins Guest

    there are also a couple of zoom commands which are very useful for the
    mouse button...
    the following will allow zoom in /out based on where the mouse pointer
    is located (as opposed to zooming in/out at the center of the display
    if you used the regular zoom commands).

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

    One additional useful functions for binding the mouse wheels to along
    with scrolling.....

    Jose
     
    jorobins, Sep 16, 2005
    #5
  6. tattvamasi

    tattvamasi Guest

    Unfortunately we are on IC5033USR2 and not on IC5141USR2

    Thanks anyways!
    Partha
     
    tattvamasi, Sep 16, 2005
    #6
  7. tattvamasi

    S. Badel Guest

    You mean scroll the text window ?
    If yes, then that's a X/Window manager issue, nothing related to the
    Cadence software.

    stéphane
     
    S. Badel, Sep 16, 2005
    #7
Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.