Cancels the interception of a Windows event on a WINDEV control or window (implemented by
Event). The procedure associated with a Windows event will not be called anymore.
Remark: The interception of events is automatically stopped when the associated window is closed.
// Capture the mouse click on an edit control
WM_LBUTTONDOWN is int = 513
EventID is int
EventID = Event("MouseClick", "EDT_EDIT1", WM_LBUTTONDOWN)
...
// Stop intercepting WM_LBUTTONDOWN on the "EDT_EDIT1" control
EndEvent(EventID)
Syntax
<Result> = EndEvent(<Event number>)
<Result>: Boolean
- True if the interception of the event was canceled,
- False in case of a problem (incorrect event number for example).
<Event number>: Integer
Number of the event to cancel (returned by Event).