Alt+Tab bug..
by Mquaker · in Torque Game Engine · 08/22/2006 (7:37 pm) · 4 replies
Alt+Tab
When click alt+tab in the game, The TGE full screen on window disappears.
then can't play the game, after ending(or finish) related process in task manager,
must restart at the beginning.
(the app disappears but is resident in the process of task manager.)
What I want to do, when click alt+tab, not disappears on the window pop mode,
But it want to be minimized, - could alt+tab easily between TGE fullscreen back to windows and back to TGE fullscreen.
this harsh problem must be a big issue of TGE.
Please Let me introduce a sample code.
Good luck..
When click alt+tab in the game, The TGE full screen on window disappears.
then can't play the game, after ending(or finish) related process in task manager,
must restart at the beginning.
(the app disappears but is resident in the process of task manager.)
What I want to do, when click alt+tab, not disappears on the window pop mode,
But it want to be minimized, - could alt+tab easily between TGE fullscreen back to windows and back to TGE fullscreen.
this harsh problem must be a big issue of TGE.
Please Let me introduce a sample code.
Good luck..
About the author
visit : http://www.quakedev.net
#2
08/22/2006 (8:07 pm)
A search for "alt tab" should bring up a work-around for this - basically you comment out some engine code and recompile. it seemed to have mixed results
#3
In platformWin32\winOGLVideo.cc remove the following from OpenGLDevice::shutdown()
Also (and I'm not sure if this is needed for the alt-tab fix) - I changed around line 761 in that same file in the setScreenMode() method this piece of code from:
to:
Looking at my SVN logs it looks like that was the only change I made to get the alt-tab stuff working.
08/22/2006 (8:14 pm)
I just fixed this same problem a couple of days ago in my own Minigolf Mania game. I think there is already a fix somewhere on the forums. This is what I did:In platformWin32\winOGLVideo.cc remove the following from OpenGLDevice::shutdown()
if ( winState.appWindow )
{
Con::printf( "Destroying the window..." );
DestroyWindow( winState.appWindow );
winState.appWindow = NULL;
}Also (and I'm not sure if this is needed for the alt-tab fix) - I changed around line 761 in that same file in the setScreenMode() method this piece of code from:
if (newFullScreen) windowStyle |= ( WS_POPUP | WS_MAXIMIZE | WS_VISIBLE);
to:
if (newFullScreen) windowStyle |= ( WS_MAXIMIZE | WS_VISIBLE);
Looking at my SVN logs it looks like that was the only change I made to get the alt-tab stuff working.
Torque Owner Chris Byars
Ion Productions
Known bug, Ben Garney posted a "fix", then someone else posted a "fix", but nothing got fixed.