How do you cancel an EVENT_APPTERMINATE

BlitzMax Forums/BlitzMax Programming/How do you cancel an EVENT_APPTERMINATE

For the thing, with the fullscreen issue is right, for this you have to make it via IGLass and then maybe like this:

Graphics 800,600,32,-1

Global EndApp:Byte = False

Repeat 

If (AppTerminate() = True Or KeyHit(Key_Escape) = True) And EndApp = False Then
	EndApp = True
EndIf

If EndApp = False Then

DrawText "This is a Test",20,20

Else

GetEndRequest()

EndIf

Flip
Cls

Forever


Function GetEndRequest()

DrawText "Really Quit !",400,300
DrawText "(Y)es or (No)",400,320

If KeyHit(Key_Y) Then End
If KeyHit(Key_N) Then
	EndApp = False
EndIf

End Function 


instead of the DrawText commands you could use the IGlass things.