Promotic
WikipediaLinkedInYoutubeTwitterFacebook

onAction - event of the PmfButton object

Description:
The event is triggered when an important logical action happens over the object.
Parameters:
ev.SrcObject(Object) Pmf object where the event originated.
ev.Action(String) Action type.
"main" - On left mouse button or "space" or "Enter" keys are released
Note:
This event is is functional only in JavaScript language.
Example:
Creates the PmfButton object (e.g. in the onFormLoad event of the PmgForm object).

The function is registered into the onAction event.

JavaScriptSelect and copy to clipboard

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);
PROMOTIC 9.0.11 SCADA system documentation - MICROSYS, spol. s r.o.

Send page remarkContact responsible person
© MICROSYS, spol. s r. o.Tavičská 845/21 703 00 Ostrava-Vítkovice