• Skip to main content
  • Skip to search
  • Skip to footer
Cadence Home
  • This search text may be transcribed, used, stored, or accessed by our third-party service providers per our Cookie Policy and Privacy Policy.

  1. Community Forums
  2. Allegro X PCB Editor
  3. skill to zoom in and out only with mouse

Stats

  • Replies 5
  • Subscribers 163
  • Views 16406
  • Members are here 0
More Content

skill to zoom in and out only with mouse

AbouYahya
AbouYahya over 15 years ago

 

hi 

Can anyone help me

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

i work with 15.7

merci.

  • Sign in to reply
  • Cancel
Parents
  • vramanan
    vramanan over 15 years ago

     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

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
Reply
  • vramanan
    vramanan over 15 years ago

     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

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
Children
No Data
Cadence Guidelines

Community Guidelines

The Cadence Design Communities support Cadence users and technologists interacting to exchange ideas, news, technical information, and best practices to solve problems and get the most from Cadence technology. The community is open to everyone, and to provide the most value, we require participants to follow our Community Guidelines that facilitate a quality exchange of ideas and information. By accessing, contributing, using or downloading any materials from the site, you agree to be bound by the full Community Guidelines.

© 2025 Cadence Design Systems, Inc. All Rights Reserved.

  • Terms of Use
  • Privacy
  • Cookie Policy
  • US Trademarks
  • Do Not Sell or Share My Personal Information