Double-click GUI dilema

BlitzPlus Forums/BlitzPlus Beginners Area/Double-click GUI dilema

I've been messing around with G.U.I coding lately, and I'm
curious on why I need to double-click to get anything to work.
The problem is, how can this work with menu's? Here is my
hub example:

menu=WindowMenu(window)
file=CreateMenu("FILE",1,menu)
finish=CreateMenu("EnD",2,file)
UpdateWindowMenu window
bank=CreateBank(20)
PokeInt bank,0,window
PokeInt bank,4,enter
PokeInt bank,8,texto
PokeInt bank,12,file
PokeInt bank,16,finish
.begin
Repeat
	ReturnText(bank)
	Menuz(bank)
Until WaitEvent()=$803
blah=Proceed("Are you sure"+Chr(10)+"you want to quit?")
	If blah=1 Then
		End
			Else
				If blah<>1 Then
					Goto begin
				EndIf
	EndIf
Function ReturnText(bank)
	enter=PeekInt(bank,4)
	texto=PeekInt(bank,8)
		Select WaitEvent()
			Case $401
				If EventSource()=enter Then
					Notify(TextAreaText(texto))
						If TextAreaText(texto)="" Then
							Notify("Write text first, then hit enter")
						EndIf
				EndIf
		End Select
End Function 
Function Menuz(bank)
	file=PeekInt(bank,12)
	finish=PeekInt(bank,16)
		Select WaitEvent()
			Case $1001
				If EventSource()=finish Then 
					Notify("Ta ta for now!")
					Delay 500
					End
				EndIf
		End Select
End Function