| Author |
Message |
tattvamasi@gmail.com
Guest
|
Posted:
Wed Sep 14, 2005 12:10 am Post subject:
mouse scroll wheel |
|
|
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
|
|
| Back to top |
|
 |
S. Badel
Guest
|
Posted:
Wed Sep 14, 2005 12:10 pm Post subject:
Re: mouse scroll wheel |
|
|
| Quote: | 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.
| Quote: | 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 |
|
| Back to top |
|
 |
tattvamasi@gmail.com
Guest
|
Posted:
Wed Sep 14, 2005 8:10 pm Post subject:
Re: mouse scroll wheel |
|
|
Thanks stephane! That works!
Partha
|
|
| Back to top |
|
 |
tattvamasi@gmail.com
Guest
|
Posted:
Fri Sep 16, 2005 6:36 am Post subject:
Re: mouse scroll wheel |
|
|
All,
Is there an equivalent bindkeys for CIW?
Would be very usefull to scroll through the CIW
Thanks,
Partha
S. Badel wrote:
| Quote: | 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 |
|
|
| Back to top |
|
 |
jorobins
Guest
|
Posted:
Fri Sep 16, 2005 6:38 am Post subject:
Re: mouse scroll wheel |
|
|
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 |
|
| Back to top |
|
 |
tattvamasi@gmail.com
Guest
|
Posted:
Fri Sep 16, 2005 7:33 am Post subject:
Re: mouse scroll wheel |
|
|
Unfortunately we are on IC5033USR2 and not on IC5141USR2
Thanks anyways!
Partha |
|
| Back to top |
|
 |
S. Badel
Guest
|
Posted:
Fri Sep 16, 2005 4:10 pm Post subject:
Re: mouse scroll wheel |
|
|
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:
| Quote: | 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
|
|
|
| Back to top |
|
 |
tattvamasi@gmail.com
Guest
|
Posted:
Sat Sep 17, 2005 12:10 am Post subject:
Re: mouse scroll wheel |
|
|
Scroll the text in the icfb window - CIW-Command interprter window,
where the CDS.log is displayed..
Partha |
|
| Back to top |
|
 |
dacut@kanga.org
Guest
|
|
| Back to top |
|
 |
okguy
Guest
|
Posted:
Wed Sep 21, 2005 8:10 am Post subject:
Re: mouse scroll wheel |
|
|
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 |
|
| Back to top |
|
 |
|
|
|
|