Stop application from suspending

BlitzMax Forums/BlitzMax GUI Programming/Stop application from suspending

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.

Yes, it will.
SuperStrict

Framework brl.win32maxgui
Import brl.timer
Import brl.eventqueue

Global Wnd_Main:TGadget = CreateWindow("My Window", 40, 40, 320, 240, Desktop(), WINDOW_TITLEBAR)
	HideGadget Wnd_Main

Global tm_timeout:TTimer = CreateTimer(20)
Repeat
  WaitEvent()
	Print CurrentEvent.ToString()
	
	Select EventID()
		Case EVENT_TIMERTICK
			Select EventSource()
				Case tm_timeout
					Print "The timeout timer has ticked!"
					
			End Select
			
		Case EVENT_WINDOWCLOSE
			End
			
	End Select
	
Forever

Notice the log will show 'AppSuspend: data=0, mods=0, x=0, y=0, extra=""', yet you will keep getting event messages.