Start maximized?

BlitzPlus Forums/BlitzPlus Programming/Start maximized?

Regular K(Posted 2004) [#1]
How can I create a window which is maximized right after creation?

Thanks :)


Eikon(Posted 2004) [#2]
Is this what you mean?
Win = CreateWindow("test", ClientWidth(Desktop()) + 1, 0, 640, 320, 0, 1 + 2)
MaximizeWindow Win

Repeat: Until WaitEvent() = $803
* edit *
You're welcome. The simple stuff can elude us sometimes ;)


Regular K(Posted 2004) [#3]
i feel so stupid! thanks


Regular K(Posted 2004) [#4]
Umm, if I hit the button to not maximize it but not minimize it, so i can scale it, it just minimizes! then i have to right click the toolbar and click maximize to see it again!

how can i get around that? ill check the code archives

EDIT: i found out how :P i set the windows x and y to -1024 and the width and height to 0 so the user cant see the window while all the stuff is being made but i fixeid tn ow and it works as i want it to :)


DNielsen(Posted 2004) [#5]
@MrSAK
As any beginner, there are no stupid questions to ask, only stupid answers! :-)