Window closed using the X

BlitzMax Forums/BlitzMax Beginners Area/Window closed using the X

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

IF you mean A MAxGUI App, then this should do it:

Local Window:TGadget = CreateWindow("Test",20,20,600,400)


Repeat

WaitEvent()

Print CurrentEvent.ToString()

	Select EventID()
		Case EVENT_WINDOWCLOSE
			If Confirm("Really Quit ?") = True Then End		
	End Select

Forever


If you mean a normal Graphics App then look at :
http://www.blitzbasic.com/Community/posts.php?topic=56183