Focus - property of the PmgObject object
Detects/set the focus of the Pmg object.
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
event is triggered.
var oObject = pMe.Items("/Txt0");
var bFocus = oObject.Focus;
// Reading from the property
oObject.Focus = true;
// Writing into the property