This object represents one form item of the type: "Button".
Properties and methods of this object:
Properties and methods that are common to all objects of the PmfObject type:
|onAction|| Is triggered when an important logical action happens over the object|
|onFocus|| Is triggered if the Pmf object gets or loses focus|
Script creates one form item. It is presumed that the oForm object already exists.
if (ev.Action == "main")
// . . .
var oBtn = oForm.CreateItem("button", "id_butt1");
oBtn.Value = "Button";
oBtn.AddEvent("onAction", "id_butt1", onTest);