Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

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

Escape/Cancel on a Toolbar

Status
Not open for further replies.

viciouspossum

Structural
Jul 26, 2005
1
I just made a custom toolbar with an icon that allows me to reset my OSNAPS, since a previous employee made blocks that changes them all around. While I'm at it, I'd like to figure out how to make an ESC key button on a toolbar, mostly for at home use when I don't want to use my keyboard, and don't want to program a mouse button for the deselect. I can put the on-screen keyboard on, and put it in the bottom right corner so just the esc shows, but I'd really like to just have a toolbar icon for it. Once something is selected, my right-click menu doesn't have a cancel anymore. Thanks.
Steve

 
Replies continue below

Recommended for you

Just add another button on your custom toolbar and
the macro for the new "Cancel" button will simply be:
^C^C

If you are using autocad 2006 then via the CUI you can
add a Cancel command to your button or use the same
macro code above.
 
^C^C doesn't work most of the time.
Use this instead:
Code:
^C^C$M=$(if,$(getvar,cmdactive),,_select ;)_ALL_^C^Credraw

Flores
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor