Positioning a window on startup

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

Hi, is there any way to position the application window on the desktop when the app starts?

Cheers

Does this help?

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

Spot on thanks!

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?

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?