Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

MIDDLE BUTTON CONTEXT SLECT HELP 1

Status
Not open for further replies.

WICKERBSKT

Programmer
Aug 12, 2003
17
US
I AM TRYING TO COME UP WITH A WAY TO USE MBUTTONPAN AND NOT HAVE TO USE SHIFT OR CTRL AND RIGHT CLICK TO BRING UP THE AUTOCAD MENU FILE. IS IT POSSIBLE TO DEFINE A KEY FOR THIS ACTION WHILE IN A COMMAND, OR AT LEAST MAKE SHORTCUTS TO BRING UP THE MORE COMMONLY USED ITEMS LIKE PERPEN. AND INTERSECTION
 
How your middle button functions depends both on what your "mbuttonpan" variable is set in ACAD, and how your mouse properties are set in Windows. Try this little routine out.
Code:
;|			midbutton.lsp
      		Enter mb at command line to toggle
     		middle button from osnap menu to pan
|;

(defun C:mb ()
  (if (= (getvar "mbuttonpan") 0)
    (progn
      (setvar "mbuttonpan" 1)
      (prompt "\nMiddle Button set to Pan.")
    )					;progn 
    (progn
      (setvar "mbuttonpan" 0)
      (prompt "\nMiddle Button set to Osnap Menu.")
    )					;progn 
  )					;if 
  (princ)
)					;defun 
(prompt "To use, enter mb at the command line.")
(princ)
Flores
 
Hello, if the menu you are talking about is the one with the osnaps on it. this can be done in the options menu, i think on user prefernces.
 
I KNOW HOW TO GET TO THE SETTINGS FOR RT CLICK IN USER PERF, WHAT I AM TRYING TO ACCOMPLISH IS TO BRING THE OSNAP MENU UP WITH 1 KEYSTROKE AND STILL HAVE M-BUTTON PAN ON. INSTEAD OF HAVING TO SHIFT OR CTRL AND RT CLICK.
 
Why don't you use F3 (Object Snap On). With this you would have available (with only a keystroke) the Object Snap Modes you have previously defined. I know that it isn’t exactly what you’re looking for but it could possible help. I hope so.

J.C.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top