Indicates whether a specific procedure is run when a Windows event is sent to a control or window.
// Request to receive the click if not done already
WM_LBUTTONDOWN is int = 513
IF NOT EventExist(EDT_MyControl, WM_LBUTTONDOWN) THEN
Event(MouseClick, "EDT_MyControl", WM_LBUTTONDOWN)
END
Syntax
<Result> = EventExist(<Element> , <Windows event>)
<Result>: Boolean
- True if:
- Event has been called on the control,
- An optional event has been added for the control in the code editor.
- False otherwise.
<Element>: Control name or window name
Name of the control or window with the desired event.
<Windows event>: Integer
Number or name of the Windows event. See the list of Windows events.
Remark: The Windows constants can be directly included in your WLanguage code via the EXTERN keyword.
Business / UI classification: UI Code