wheelmouse bindkeys for dfII

Discussion in 'Cadence' started by fogh, Jul 19, 2004.

  1. fogh

    fogh Guest

    If you have useful bindkeys for the wheel, please send them to the NG. Here is a function that will at least derive bindings for wheel and [alt]+wheel for the arrow mappings.


    procedure( CmMouseWheelLikeArrows()
    let( (application key button binding CmKeyToButtonMapping)
    ;; This is the configurable part:
    CmKeyToButtonMapping=list(list("Up" "None<Btn4Down>")
    list("Down" "None<Btn5Down>")
    list("Right" "Alt<Btn4Down>")
    list("Left" "Alt<Btn5Down>")
    )
    ;; foreach(application setof( app hiGetBindKeyPrefixList() and(rexMatchp("^[^ ]" app) hiGetBindKeys(app))) ;;it seems difficult to list bindkeys without a view window *'sigh'*
    foreach(application '("Schematics" "Command Interpreter" "Show File" "Symbol" "Graphics Browser" "Layout")
    foreach( ArrowButtonPair CmKeyToButtonMapping
    key=car(ArrowButtonPair) button=cadr(ArrowButtonPair)
    if( binding=hiGetBindKey(application key)
    hiSetBindKey( application button binding)
    );fi
    );pairs
    );apps
    ;;of course it always works! Lets return OK :)
    t
    ))
     
    fogh, Jul 19, 2004
    #1
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.