How come this doesn't work?

BlitzMax Forums/BlitzMax Programming/How come this doesn't work?

The Forum Archive is locked. These are the original blitzbasic.com forums, kept so their posts can still be read and searched. No new topics, replies or edits can be made here. To join the conversation, head over to the Blitz3D+ forums.

Only canvases and "active" panels can generate mouse-enter-events:
win:TGadget = CreateWindow("blah",0,0,320,240,Null)
panel:TGadget = CreatePanel(0,0,40,20,win,PANEL_ACTIVE) ' needs to be "active"
SetGadgetColor panel , 255 , 255 , 255 ' make it visible

Repeat
	WaitEvent()
	
	Select EventID()
		Case EVENT_MOUSEENTER
			Select EventSource()
				Case panel
					Print "Mouse entered panel area"
			End Select
		Case EVENT_WINDOWCLOSE
			End
	End Select
Forever


-- Byteemoz