Events / Hooks and Stuff

BlitzMax Forums/BlitzMax Beginners Area/Events / Hooks and Stuff

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

the code

' an event handler based program

Function EventHandler()
	Select EventID()
		Case EVENT_WINDOWCLOSE
			End
	End Select
End Function

window=CreateWindow("test",20,20,200,200)

AddHook EmitEventHook,EventHandler

While True
	WaitEvent()
Wend



does't work for me it give me an error

"Unable to convert from Int() to Object(int,Object,Object) ?