ev | (Object) Reference to an object that describes information about the event |
---|
function onEnumChange(ev)
{
Pm.Debug("OldValue=" + ev.OldValue);
}
var oForm = pMe.Form;
var oEnum = oForm.CreateItem("string", "id_Enum1", "Enum 1", "");
oEnum.AddRow(0.5, "slow");
oEnum.AddRow(9.9, "fast");
oEnum.Value = 0.5;
oEnum.AddEvent("onEditAccept", "id_Enum1", onEnumChange);