MSM-Workstation
Macros
Go back to the alphabetic list of macros
Go back to the first page of this tutorial
%%EvControl
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 control for which the event occurred,
which is equal to $Piece(^$Event("ELEMENT"),",",2).
When code is executed in the context of "action logic",
the component identified by %%CurrCtl is
the same one as the component identified by %%EvControl.
Examples
Set value=%%Prop(%%EvControl.Value)
Fetches the value of the component for which the current event was triggered.
%%Set(%%EvControl.ForeColor,%%Red)
Changes the color of the foreground (text) in the current component to red.
See also
%%EvChoice,
%%EvElement,
%%EvKey,
%%EvNext,
%%EvPrior,
%%EvPtrButton,
%%EvPtrPos,
%%EvPtrState,
%%EvSequence,
%%EvType and
%%EvWindow.