mouse scroll wheel
CADForums.net Forum Index CADForums.net
Discussion of AutoCAD and other CAD software.
 
 FAQFAQ   MemberlistMemberlist     RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
 
Google
 
Web cadforums.net
mouse scroll wheel

 
Post new topic   Reply to topic    CADForums.net Forum Index -> Cadence
Author Message
tattvamasi@gmail.com
Guest





Posted: Wed Sep 14, 2005 12:10 am    Post subject: mouse scroll wheel Reply with quote

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 Reply with quote

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 Reply with quote

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 Reply with quote

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 Reply with quote

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 Reply with quote

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 Reply with quote

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 Reply with quote

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





Posted: Sat Sep 17, 2005 8:10 am    Post subject: Re: mouse scroll wheel Reply with quote

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
Back to top
okguy
Guest





Posted: Wed Sep 21, 2005 8:10 am    Post subject: Re: mouse scroll wheel Reply with quote

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
 
Post new topic   Reply to topic    CADForums.net Forum Index -> Cadence All times are GMT
Page 1 of 1

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum




Windows Server DSP VoIP Electronics New Topics
Contact Us
Powered by phpBB