Capturing GUI Events

BlitzMax Forums/BlitzMax GUI Programming/Capturing GUI Events

Hi guys,

Been trying to create my own front end for using gman's sid player modules and I'm doing well until I come to the part where I want to double click an entry in my loaded in playlist and I can't seem to get the right event information

Excuse if I'm posting this incorrectly but I'm trying to detect a double click from EventID() or even just a hit so I can do a manual count within the program to intercept it then I can play the double clicked track but I don't seem to be capturing events with this code. I'm trying to display them on the status bar so I know it's working but I must be doing something wrong.

Any help would be much appreciated - I won't have a problem finding out what item in the list has been double clicked, just knowing how to detect the mouse has been clicked in the first place would be a start.

' MARK: Main Loop
Repeat
	WaitEvent()
	Select EventID()
		Case EVENT_MOUSEDOWN
			Event = "Mouse Down"
			
		Case EVENT_MOUSEHIT
			Event = "Mouse Hit"
		
		Case EVENT_GADGETACTION
			DoGadgetAction()	

		Case Event_KEYDOWN
			Event = "Key Down"
			
	End Select
	SetStatusText Sidney , "Event: " + Event

Until EventID()=EVENT_WINDOWCLOSE Or UserHasQuit=True