FryGUI

BlitzMax Forums/BlitzMax Programming/FryGUI

Glad you like it. I need a Listbox for those panels, so i'm looking forward to an update. :P

BTW, how do i catch a button press manually? I tried this:

Global btnRefresh:fry_TButton = fry_TButton(fry_GetGadget("matchbuttons/btnrefresh"))
Global btnJoin:fry_TButton = fry_TButton(fry_GetGadget("matchbuttons/btnjoin"))
Global btnHost:fry_TButton = fry_TButton(fry_GetGadget("matchbuttons/btnhost"))
Global btnPractice:fry_TButton = fry_TButton(fry_GetGadget("matchbuttons/btnpractice"))

If fry_EventID() = fry_EVENT_GADGETSELECT 
	Select fry_EventSource() 
	Case btnPractice
		Host = 1
		Return
	Case btnHost
		Host = 1
		Ready = True
	Case btnJoin
		Host = 0
		Ready = True
	Case btnRefresh
		lastrefresh = MilliSecs()
		UpdateLobby()
	EndSelect
End If


But it doesn't work. What am I doing wrong?