Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Bug Reports / Set Window Off problem

Author
Message
zoltar
13
Years of Service
User Offline
Joined: 2nd Mar 2011
Location:
Posted: 3rd Mar 2011 19:25
I think to have come across a bug associated with this command. The issue is that after switching modes, from window to fullscreen and back, the application window stays "always on top." This means the user cannot switch between applications without having the application compiled with DBP at the very front. This is true under XP, Vista and 7.

The following demo code has been compiled with DBP Compiler 1.07/Editor Build Oct 2 2008 and DBP Compiler 1.076/Editor Build Jun 23 2010 on Windows XP Professional SP3 with DirectX 9.0c, and tested on multiple computer configurations, including desktops and laptops, running Windows XP, Vista and 7, with the same result.

CLS
PRINT "At this point the application window moves along the z-order normally."
PRINT "Press any key to switch to fullscreen mode..."
WAIT KEY
SET WINDOW OFF
CLS
PRINT "Press any key to switch back to window mode..."
WAIT KEY
SET WINDOW ON
CLS
PRINT "At this point the application window stays always on top."
PRINT "Press any key to exit..."
WAIT KEY

The workaround is to use the WINDOW TO BACK and WINDOW TO FRONT commands, in that order, after calling SET WINDOW ON.

(...)
SET WINDOW ON
WINDOW TO BACK
WINDOW TO FRONT
(...)

The problem and the workaround have been confirmed by other users (Commico Inc, baxslash and Master Man Of Justice).
Admiral MH
13
Years of Service
User Offline
Joined: 10th Feb 2011
Location: TX, USA
Posted: 10th Mar 2011 18:54 Edited at: 10th Mar 2011 18:57
Yeah same results, must be some bug caused after switching from full screen I guess.

Login to post a reply

Server time is: 2024-04-16 22:34:37
Your offset time is: 2024-04-16 22:34:37