Promotic

Focus - property of the PmgObject object

Description:
Detects/set the focus of the Pmg object.
Syntax:
Boolean Focus
Values:
true - object has the focus
false - object hasn't the focus
Note:
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:
Example:
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.