ev.SrcObject | (Object) Pmf object where the event originated. |
---|---|
ev.Action | (String) Action type. |
The function is registered into the onAction event.
function onTest(ev)
{
if (ev.Action == "main")
{
Pm.Debug("Click UP");
//. . .
}
}
var oForm = pMe.Form;
var oBtn = oForm.CreateItem("button", "id_butt1");
oBtn.Value = "Button";
oBtn.AddEvent("onAction", onTest);