| ev | (Object) Reference to an object that describes information about the event |
|---|
var oForm = pMe.Form;
var oBtn = oForm.CreateItem("button", "id_btn1");
oBtn.Value = "Button";
// The function is registered into the onAction event.
function onButtonUp(ev)
{
if (ev.Action == "main")
{
Pm.Debug("ButtonUp");
// . . .
}
}
oBtn.AddEvent("onAction", "Id_Btn1", onButtonUp);