mouse scroll wheel

  • Thread starter tattvamasi@gmail.com
  • Start date
T

tattvamasi@gmail.com

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
 
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.

Like for example I would like to use the scroll wheel to scroll
therough the layout, scroll through CIW content..etc
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
 
All,
Is there an equivalent bindkeys for CIW?
Would be very usefull to scroll through the CIW

Thanks,
Partha

S. Badel wrote:
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.

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

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
 
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
 
Unfortunately we are on IC5033USR2 and not on IC5141USR2

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

stéphane

tattvamasi@gmail.com wrote:
All,
Is there an equivalent bindkeys for CIW?
Would be very usefull to scroll through the CIW

Thanks,
Partha

S. Badel wrote:

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.


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

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
 
Scroll the text in the icfb window - CIW-Command interprter window,
where the CDS.log is displayed..

Partha
 
Actually, it's a widget set issue and, yes, it's possible.

See:
http://groups.google.com/group/comp.cad.cadence/browse_thread/thread/12b22d6c59564f4a/42d176ea12ac8fe0
 
May I suggest the following to be added to .cdsinit:

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

hiSetBindKey("Layout" "<Btn5Down>" "geScroll(nil \"s\" nil)")
hiSetBindKey("Layout" "<Btn4Down>" "geScroll(nil \"n\" nil)")
hiSetBindKey("Layout" "Shift<Btn5Down>" "geScroll(nil \"e\" nil)")
hiSetBindKey("Layout" "Shift<Btn4Down>" "geScroll(nil \"w\" nil)")

window(1)->useScrollbars = t
 

Welcome to EDABoard.com

Sponsor

Back
Top