The property for which the value is returned by this macro is the name of the mouse button that caused the event to occur, which is equal to ^$Event("PBUTTON").
Possible values are:
PB1 | Left mouse button |
PB2 | Middle mouse button |
PB3 | Right mouse button |
s button=%%EvPtrButton
Catch the relevant parameter of the event
i button="PB1" d xxx q
In case the left-button was pressed and released,
do one thing...
i button="PB3" %%PopMenu(MenuForDemo) q
In case the right-button was pressed and released,
pop up the menu for the current object.