maxgui : mouse enter inside a textfield

BlitzMax Forums/BlitzMax Beginners Area/maxgui : mouse enter inside a textfield

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.

hi !
how to detect that the mouse is inside a textfield gadget ? Could i use EVENT_MOUSEENTER or EVENT_MOUSEMOVE to check this ?
Thanks !

Local MyWindow:TGadget=CreateWindow("test", 200,200,320,240)

Local MyField:Tgadget = CreateTextField (10,10,200,20, MyWindow)

Repeat

  WaitEvent()

	Print CurrentEvent.ToString()
	
  Select EventID()

	  Case EVENT_WINDOWCLOSE
	     End
	  Case EVENT_MOUSEENTER, EVENT_MOUSEMOVE
	 	Select EventSource()
	
			Case MyField
				Notify "mouse is inside the textfield"
				
		End Select
	
   End Select
Forever