Focus - property of the PmgObject object

Detects/set the focus of the Pmg object.
Boolean Focus
true - object has the focus
false - object hasn't the focus
Property access for read and write.
This property is also functional in Web panels.
This property is not functional for object: PmgRoot.

In order to detect the focus of the object or some of its subobjects the PmgObject.GetItemInfo(1) method can be used..

If this property is changed then the onModeChange, onFocusIn or onFocusOut event is triggered.
See also:
JavaScriptVBScriptSelect and copy to clipboard

var oObject = pMe.Items("/Txt0");

var bFocus = oObject.Focus;   // Reading from the property
oObject.Focus = true;   // Writing into the property
PROMOTIC 9.0.27 SCADA system documentation MICROSYS, spol. s r.o.

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