View Single Post
Old 29th January 2007, 07:00 PM   #2
Andy
Administrator
Professional user
 
Andy's Avatar
 
Join Date: Jun 2003
Posts: 4,564
Default Re: Script for right-click menu

Try this:

Code:
 
#make a popup menu
menu .rightmenu -tearoff false 
.rightmenu add command -label "Select All" -command "ac3d select_all"
 
# bind a right click (button 3) to view 0 (top left view window)
bind $ToglWinName(0) <3> { tk_popup .rightmenu %X %Y}
Andy is offline   Reply With Quote