Home > Community > Forums > PCB SKILL > skill to zoom in and out only with mouse

Email

* Required Fields

Recipients email * (separate multiple addresses with commas)

Your name *

Your email *

Message *

Contact Us

* Required Fields
First Name *

Last Name *

Email *

Company / Institution *

Comments: *

 skill to zoom in and out only with mouse 

Last post Fri, Mar 5 2010 7:22 PM by tomoo. 5 replies.
Started by AbouYahya 04 Mar 2010 12:40 AM. Topic has 5 replies and 5279 views
Page 1 of 1 (6 items)
Sort Posts:
  • Thu, Mar 4 2010 12:40 AM

    • AbouYahya
    • Not Ranked
    • Joined on Sun, Feb 28 2010
    • Posts 3
    • Points 60
    skill to zoom in and out only with mouse Reply

     

    hi 

    Can anyone help me

    i need a skill to zoom in and out only with mouse

    i work with 15.7

    merci.

    • Post Points: 20
  • Thu, Mar 4 2010 2:12 AM

    • vramanan
    • Top 100 Contributor
    • Joined on Fri, Oct 10 2008
    • sunnyvale, CA
    • Posts 66
    • Points 1,110
    Re: skill to zoom in and out only with mouse Reply

     Hi

    You could implement this by adding the following  on the env file

    The env file is located in

    %CDSROOT%/share/pcb/text/env

    ########Start Cut Here

    #--------------------------------------------------------------------
    # MOUSE WHEEL SUPPORT (Windows only)
    #   Environment Variables - Note quote variables so they are evaluated
    #        at button time not when this file is read.
    #   - _wheelcnt variable is set based upon number of detents wheel moved
    #    range is -4 to 4 (no 0)
    #   - sx1 and sy1 are cursor coordinates when wheel is moved
    #
    # Button values
    #   wheel_up:   when wheel is moved up
    #   wheel_down: when wheel is moved down
    #   wheel:    up/down if either of above 2 buttons are not assigned

    # Keyboard modifiers (note we are case insensitive)
    #   S - shift key
    #   C - control key
    #   SC - shift and control
    #     Example: SCwheel - for wheel button assignment with both shift & control keys
    #

    # Button factor may be factorion (e.g. 0.5)
    set buttonfactor = 1

    button wheel_up "zoom in $buttonfactor"
    button wheel_down "zoom out $buttonfactor"
    button Cwheel_up "zoom in $buttonfactor"
    button Cwheel_down "zoom out $buttonfactor"

    ########End Cut Here

    Regards
    Venkata

    • Post Points: 20
  • Thu, Mar 4 2010 1:06 PM

    • Ejlersen
    • Top 10 Contributor
    • Joined on Mon, Jul 28 2008
    • Aalborg, Copenhagen
    • Posts 569
    • Points 10,080
    Re: skill to zoom in and out only with mouse Reply

    Hi

     Those commands could also be executed inside skill using AxlShell.

    Best regards

    Ole

    Best regards Ole
    • Post Points: 20
  • Thu, Mar 4 2010 1:38 PM

    • AbouYahya
    • Not Ranked
    • Joined on Sun, Feb 28 2010
    • Posts 3
    • Points 60
    Re: skill to zoom in and out only with mouse Reply

    hi

    can you give me a detail pleaz

     

    • Post Points: 20
  • Thu, Mar 4 2010 4:26 PM

    • fxffxf
    • Top 25 Contributor
    • Joined on Thu, Jul 17 2008
    • ., AK
    • Posts 298
    • Points 4,735
    Re: skill to zoom in and out only with mouse Reply

     This requires Allegro 16.0 or newer. It is not available in 15.7

    • Post Points: 20
  • Fri, Mar 5 2010 7:22 PM

    • tomoo
    • Top 500 Contributor
    • Joined on Wed, Jul 23 2008
    • Ozu, Kumamoto-ken
    • Posts 34
    • Points 500
    Re: skill to zoom in and out only with mouse Reply

    I believe that you can zoom in and out by using middle(wheel) mouse without skill in 15.7 default configuration .
    Usually I also use the function without anything particular setting in 15.7.
    Please refer to the following description in the 15.7 product document.

    ----------------------
    Middle Mouse Button

    Press and hold the middle mouse button while moving the mouse in the direction you want to pan and use the view (zoom) features (see Viewing a Design). If you click the middle mouse button, the system either zooms in or out, based on the direction in which you move the cursor. If you move from top left to bottom right, the display zooms out. If you move from bottom right to top left, the display zooms in. In both cases, a rectangle that depicts the new zoom area displays. You can disable the zoom functionality by setting the environment variable no_dynamic_zoom.

    In Windows, for Wheel mouse devices (middle mouse button is a wheel), the middle mouse button must be defined so that the roam function works correctly. Access the Control Panel to open the Mouse Option Control and check the behavior.

    The easiest way to zoom in, zoom out, and move across a design display in the UI workspace is by way of the middle mouse button. The button gives you access to all the zoom features available from the menu bar or keyboard commands (except zoom in, which is integrated into zoom points) without the need to make a menu selection or enter a command at the console window prompt. Use of the middle mouse button also enables you to roam or pan across a design.

    The zoom function remains active until you click the middle mouse button a second time. (Clicking the left mouse button also takes you out of zoom mode.)

    If you prefer not to use the dynamic zoom features, you can disable the functionality by setting the environment variable no_dynamic_zoom in the User Preferences Editor. By setting this variable, middle-button functionality is limited to zooming in or zooming out.

    ----------------------

    Hope this helps.
    Tomo

    • Post Points: 5
Page 1 of 1 (6 items)
Sort Posts:
Started by AbouYahya at 04 Mar 2010 12:40 AM. Topic has 5 replies.