Stops all control events from firing.
Usage
Set_Property(OLECtrlEntID, "OLE.BlockEvents", Boolean)
Values
[True | False]
Default: False
Remarks
The BlockEvents property establishes whether or not the control fires its events. This property is available to all controls as means to prevent events firing during a limited period of time, such as while making control changes during another event.
Setting this to 1 causes events to stop firing. If you forget to reset it back to zero, then your control will not fire events anymore, so make sure to turn it on and off with each use.
Example
// Turn off events Set_Property(@Window:".OLE_BUTTON", "OLE.BlockEvents", 1) // Do some stuff // Turn events back on Set_Property(@Window:".OLE_BUTTON", "OLE.BlockEvents", 0)