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 Professional Discussion / Auto center when entering window mode.

Author
Message
czzplnm
15
Years of Service
User Offline
Joined: 10th Aug 2010
Location:
Posted: 10th Aug 2010 15:15
How can I add drag bars to the top of my program or add a auto position to set window on.

"The eternal mystery of the world is its comprehensibility."
-Albert Einstein
BMacZero
20
Years of Service
User Offline
Joined: 30th Dec 2005
Location: E:/ NA / USA
Posted: 10th Aug 2010 18:32
I'm not exactly sure what you're after, but SET WINDOW ON should give the window a title bar to drag it around with. You can position the window with your program with SET WINDOW POSITION.

DVader
22
Years of Service
User Offline
Joined: 28th Jan 2004
Location:
Posted: 10th Aug 2010 20:04
Yes just use screen height() and screen width() commands to find your desktop res and center the window using those values as your guide.

http://s6.bitefight.org/c.php?uid=103081
BMacZero
20
Years of Service
User Offline
Joined: 30th Dec 2005
Location: E:/ NA / USA
Posted: 10th Aug 2010 20:15
I think SCREEN WIDTH and SCREEN HEIGHT refer only to the DBP window, DESKTOP WIDTH and DESKTOP HEIGHT might be what you want.

DVader
22
Years of Service
User Offline
Joined: 28th Jan 2004
Location:
Posted: 10th Aug 2010 20:20
Yes lol, my bad that is what I meant

http://s6.bitefight.org/c.php?uid=103081
czzplnm
15
Years of Service
User Offline
Joined: 10th Aug 2010
Location:
Posted: 11th Aug 2010 12:03
Thanks.

"The eternal mystery of the world is its comprehensibility."
-Albert Einstein

Login to post a reply

Server time is: 2026-07-25 23:12:13
Your offset time is: 2026-07-25 23:12:13