MSM-Workstation
Macros
Go back to the alphabetic list of macros
Go back to the first page of this tutorial
%%EvChoice
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 "current choice",
which is equal to ^$Event("CHOICE").
Note: in the context of
a select event, this choice is the
newly selected item; in the context of
a deselect event, this choice is the
item that was previously selected and is now de-selected.
Examples
Assume that this example has to do with a list that contains
names of colors, and that, when a color is selected, a sample
window is popped up with an application specific demonstration
for that color.
For the "select" event, appropriate code would be:
Set window="Demo"_%%EvChoice %%OpenWin(@window)
and the counterpart for "deselect" would be:
Set window="Demo"_%%EvChoice %%CloseWin(@window)
See also
%%EvControl,
%%EvElement,
%%EvKey,
%%EvNext,
%%EvPrior,
%%EvPtrButton,
%%EvPtrPos,
%%EvPtrState,
%%EvSequence,
%%EvType and
%%EvWindow.