None. |
Returns a value indicating the source of the event.
For example, in the case of gadget action events, EventSource returns the handle of the gadget that caused the event. See also: WaitEvent, EventID, EventData. |
; create a window...
WinHandle=CreateWindow("WaitEvent Example",0,0,400,200) ; ...and a single button upon that window ExitButton=CreateButton("Exit",50,50,300,40,WinHandle) ; main loop to handle events Repeat If WaitEvent()=$401 Then If EventSource()=ExitButton Then Exit End If Forever End |