Enabled - property of the PmgObject object
Description:
Enable/disable any control, i.e. user entry to the object and its subobjects.
Values:
true - object captures events triggered by the user (by clicking the mouse, pressing the key, etc.)
false - object doesn't capture any event that is triggered by the user
Note:
Property access
for read and write.
The default value of this property is defined in the "
Control enabled" configurator of this object.
This property is also functional in
Web panels.
If this property is changed the
onModeChange event is triggered.
Example:
JavaScriptVBScriptSelect and copy to clipboard
var oObject = pMe.Items("/Txt0");
var bEnabled = oObject.Enabled;
// Reading from the property
oObject.Enabled = true;
// Writing into the property
Dim oObject
Set oObject = pMe.Items("/Txt0")
Dim bEnabled
bEnabled = oObject.Enabled
' Reading from the property
oObject.Enabled = true
' Writing into the property
History:
Pm8.03.26:
Fixed bug: Sometimes did not work if set in the script or by data binding.