Controlling the zoom factor used by hiZoomInAtMouse

Discussion in 'Cadence' started by Svenn Are Bjerkem, Jan 10, 2007.

  1. 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 Are Bjerkem, Jan 10, 2007
    #1
  2. 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
     
    Suresh Jeevanandam, Jan 10, 2007
    #2
  3. Svenn Are Bjerkem

    Guest Guest

    hiZoomInAtMouse() calls hiZoomWindowAtMouse() with a scale factor of 2.0, and
    ZoomOut with a scale factor of 0.5.

    -Pete Zakel
    ()

    "I can't complain, but sometimes I still do."
    -Joe Walsh
     
    Guest, Jan 11, 2007
    #3
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.