well if you could create windows hidden, like in maxgui, then show them after you repositioned to the center with that code, then it would be nicer. thats for windows created by maxgui. to center an app with the graphics function you should read my post here
http://blitzmax.com/Community/posts.php?topic=57449
you need maxgui for it to work but it works. although if i knew how to find the size of the desktop without maxgui i would.
[edit] i used the above code and modified some modules. Now it works without MaxGUI!!!! :D
http://blitzmax.com/Community/posts.php?topic=57449
you need maxgui for it to work but it works. although if i knew how to find the size of the desktop without maxgui i would.
[edit] i used the above code and modified some modules. Now it works without MaxGUI!!!! :D