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.

DarkBASIC Discussion / windowed mode

Author
Message
Jellybean
21
Years of Service
User Offline
Joined: 26th Aug 2003
Location:
Posted: 27th Aug 2003 00:52
is it possible to stop a db exe from switching to fullscreen then to my defined winowed mode, is there now way of altering the exe to make it load in windowed mode automatically?
Wik
21
Years of Service
User Offline
Joined: 21st May 2003
Location: CT, United States
Posted: 27th Aug 2003 04:36
I think in dbpro you can do this.

-Matt

The rock has rolled!
Compton
22
Years of Service
User Offline
Joined: 4th Dec 2002
Location:
Posted: 5th Sep 2003 14:58
Quote: "
X = 400
Y = 300
sync on : sync rate 0
set display mode X,Y,16
set window on : set window size X,Y
lock backbuffer
bbX = get backbuffer width()
bbY = get backbuffer height()
set window position (bbX/2),(bbY/2)
unlock backbuffer
set window title "Window Centred on Desktop Example"
backdrop on : backdrop colour 0

do
if escapekey()<>0 then end
sync
loop
"


Centered and windowed, have fun!

:*
empty
22
Years of Service
User Offline
Joined: 26th Aug 2002
Location: 3 boats down from the candy
Posted: 5th Sep 2003 20:52 Edited at: 5th Sep 2003 20:54
Assuming you use DBClassic:
You need to have a "setup.ini" file in the same folder where your executable is located. This setup file must contain these lines:
[SETTINGS]
windowmode=1

This will prevent the executable from switching to fullscreen on start up.

I awoke in a fever. The bedclothes were all soaked in sweat.
She said "You've been having a nightmare and it's not over yet"
KNau
22
Years of Service
User Offline
Joined: 25th Nov 2002
Location: Canada
Posted: 5th Sep 2003 23:36
Hmmm...I still get a jump to full screen with the above method but it's at least faster getting to windowed mode. Full screen is just a quick flash and then the window appears.

"Life drives you nuts babe. Cuz if you ain't certain. It'll kick you in the guts, babe. And leave ya hurtin'" - Motorhead
empty
22
Years of Service
User Offline
Joined: 26th Aug 2002
Location: 3 boats down from the candy
Posted: 5th Sep 2003 23:41
Well, it will spread the initial window across the whole screen but it won't change the resolution or colour settings.

I awoke in a fever. The bedclothes were all soaked in sweat.
She said "You've been having a nightmare and it's not over yet"

Login to post a reply

Server time is: 2025-05-20 01:38:39
Your offset time is: 2025-05-20 01:38:39