MSM-Workstation
Macros

Go back to the alphabetic list of macros
Go back to the first page of this tutorial

%%EvPtrState

This macro generates code that returns a specification of the value of a property of the most recent event.

The property for which the value is returned by this macro is list of mouse buttons that were depressed when the event occurred, which is equal to ^$Event("PSTATE").

Examples

Assume that a series of mouse events occurs. The table below describes the various values (each mouse-down event adds a button code to the list in %%EvPtrState, each mouse-up event removes one):

EventValue of
%%EvPtrButton
Value of
%%EvPtrState
ptrDown"PB1""PB1"
ptrUp"PB1" 
ptrDown"PB3""PB3"
ptrUp"PB3" 
ptrDown"PB1""PB1"
ptrDown"PB3""PB1,PB3"
ptrUp"PB1""PB3"
ptrUp"PB3" 
ptrDown"PB1""PB1"
ptrDown"PB3""PB1,PB3"
ptrUp"PB3""PB1"
ptrUp"PB1" 

See also

%%EvChoice, %%EvControl, %%EvElement, %%EvKey, %%EvNext, %%EvPrior, %%EvPtrButton, %%EvPtrPos, %%EvSequence, %%EvType and %%EvWindow.