Promotic
WikipediaLinkedInYoutubeTwitterFacebook

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.
Example:
JavaScriptVBScriptSelect and copy to clipboard

var oItem = pMe.Items("/Txt0");
var bFocus = oItem.Focus;  //reading

oItem.Focus = true;  //writing
PROMOTIC 9.0.13 SCADA system documentation - MICROSYS, spol. s r.o.

Send page remarkContact responsible person
© MICROSYS, spol. s r. o.Tavičská 845/21 703 00 Ostrava-Vítkovice