Focus - property of the PmgObject object
Description:
Detects/set the focus of the Pmg object.
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.
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
Dim oObject
Set oObject = pMe.Items("/Txt0")
Dim bFocus
bFocus = oObject.Focus
' Reading from the property
oObject.Focus = true
' Writing into the property