Positioning a window on startup

BlitzMax Forums/BlitzMax Beginners Area/Positioning a window on startup

Ant(Posted 2006) [#1]
Hi, is there any way to position the application window on the desktop when the app starts?

Cheers


tonyg(Posted 2006) [#2]
Does this help?


Chris C(Posted 2006) [#3]
i tend to 1/2 the width and height of the desktop and subtract 1/2 the windows width and height, this centres the window nicly, which isnt the default cascade position, but then that only happens on 1 OS and is fairly usless for placement


Ant(Posted 2006) [#4]
Spot on thanks!


Moogles(Posted 2006) [#5]
that code shows the window in an offset position from the center. then it moves to the center. but you can still see it. :/
Isnt there a way to do Graphics, but keep it hidden?


Xerra(Posted 2006) [#6]
I've used the 1/2 width and height method mentioned by Chris C above in my program but is there a way to find the desktop width and height in BlitzMax so I can calculate the centre settings when the program is used on someone elses computer that may have another screen size than mine?