Controlling the zoom factor used by hiZoomInAtMouse

S

Svenn Are Bjerkem

Guest
Hi,
there are two functions available to bind with the scroll wheel of the
mouse, hiZoomInAtMouse() and hiZoomOutAtMouse() which both has a factor
of 2. This is a bit too much zooming for my taste, and I have been
looking in the manual to see if there is a way to modify this factor. I
have found nothing so far. Does anybody have additional information on
how this can be done?

A user function was posted here some time ago that also did this, but
in its original version it did not pay any attention to the position of
the mouse. I guess that function can be modified to also take mouse
position into consideration, but I first wanted to check if there is a
simpler way to solve the problem.

--
Svenn
 
Svenn Are Bjerkem wrote:
Hi,
there are two functions available to bind with the scroll wheel of the
mouse, hiZoomInAtMouse() and hiZoomOutAtMouse() which both has a factor
of 2. This is a bit too much zooming for my taste, and I have been
looking in the manual to see if there is a way to modify this factor. I
have found nothing so far. Does anybody have additional information on
how this can be done?

A user function was posted here some time ago that also did this, but
in its original version it did not pay any attention to the position of
the mouse. I guess that function can be modified to also take mouse
position into consideration, but I first wanted to check if there is a
simpler way to solve the problem.
cdsFinder search returned this:

hiZoomWindowAtMouse(
w_window
f_scale
)
=> t | nil

Zooms in or out of a window, keeping the point beneath the mouse at its
current location in the window.

-
Suresh
 
In article <eo2obm$hih$1@home.itg.ti.com> Suresh Jeevanandam <sureshj@DELETETHISti.com> writes:
Svenn Are Bjerkem wrote:
Hi,
there are two functions available to bind with the scroll wheel of the
mouse, hiZoomInAtMouse() and hiZoomOutAtMouse() which both has a factor
of 2. This is a bit too much zooming for my taste, and I have been
looking in the manual to see if there is a way to modify this factor. I
have found nothing so far. Does anybody have additional information on
how this can be done?

A user function was posted here some time ago that also did this, but
in its original version it did not pay any attention to the position of
the mouse. I guess that function can be modified to also take mouse
position into consideration, but I first wanted to check if there is a
simpler way to solve the problem.


cdsFinder search returned this:

hiZoomWindowAtMouse(
w_window
f_scale
)
=> t | nil

Zooms in or out of a window, keeping the point beneath the mouse at its
current location in the window.
hiZoomInAtMouse() calls hiZoomWindowAtMouse() with a scale factor of 2.0, and
ZoomOut with a scale factor of 0.5.

-Pete Zakel
(phz@seeheader.nospam)

"I can't complain, but sometimes I still do."
-Joe Walsh
 

Welcome to EDABoard.com

Sponsor

Back
Top