onFocus - event of the PmfObject object

The event is triggered if the Pmf object gets or loses focus
ev.SrcObject(Object) Pmf object where the event originated.
ev.Type(String) Focus type.
"in" - Pmf object got focus
"out" - Pmf object lost focus
- This event is is functional only in JavaScript language.
- This event is not functional for object: PmfLayout, PmfSepar, PmfString (for Subtype:static).
Creates the PmfString object (e.g. in the onFormLoad event of the PmgForm object).
The function is registered into the onFocus event.
JavaScriptSelect and copy to clipboard

var oForm = pMe.Form;
var oString = oForm.CreateItem("string", "id_Str1", "String 1", "");
oString.Value = oForm .ClientType ? "PM Runtime" : "PM Develop";

oString.AddEvent("onFocus", "id_Str1", function(ev) { Pm.Debug("onFocus, Type = " + ev.Type); });

Pm9.00.11: Created
PROMOTIC 9.0.18 SCADA system documentation - MICROSYS, spol. s r.o.

Send page remarkContact responsible person
© MICROSYS, spol. s r. o.