MSM-Workstation
Macros
Go back to the alphabetic list of macros
Go back to the first page of this tutorial
%%EvWindow
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 the name of the window for which the event occurred,
which is equal to ^$Event("WINDOW").
When code is executed in the context of "action logic",
the window identified by %%CurrWin is
the same one as the window identified by %%EvWindow.
Examples
Set value=%%Prop(%%EvWindow.Title)
Fetches the header title of the window for which the current event was triggered.
%%Set(%%EvWindow.BackColor,%%White)
Changes the color of the background in the current window to white.
See also
%%EvChoice,
%%EvControl,
%%EvElement,
%%EvKey,
%%EvNext,
%%EvPrior,
%%EvPtrButton,
%%EvPtrPos,
%%EvPtrState,
%%EvSequence and
%%EvType.