is this not possible?

Blitz3D Forums/Blitz3D Beginners Area/is this not possible?

Apollonius(Posted 2003) [#1]
While Not KeyHit(1)
Select EventID()
		Case $803
		Exit
End Select

Wend
End


Is this not possible in anyway, cause I need to use the GUI and when their done switch to Graphic mode, how should i do this?


CS_TBL(Posted 2003) [#2]
..put a waitevent() in the while/wend loop ..


Apollonius(Posted 2003) [#3]
tryed this but it doesnt work :|

Select WaitEvent()
Case EventID() = $803
End
End Select


Apollonius(Posted 2003) [#4]
While Not KeyHit(1)
 While WaitEvent()

	EvID=EventID()
	Select EvID
		Case $803
		End
	End Select
 Wend	
Wend

two loop is that legal?


CS_TBL(Posted 2003) [#5]
this code always works for me:

quit=False
Repeat
	WaitEvent()
	If EventID()=$803
            ; If EventSource()=MyWindow
		quit=True
            ; End If
	EndIf
Until quit
; here you can proceed other loops or parts..


Keep things simple. I *always* use the above mechanism.


Apollonius(Posted 2003) [#6]
its pretty nice I love it, thanks CS