Start a window in maximized mode

BlitzMax Forums/MaxGUI Module/Start a window in maximized mode

Sanctus(Posted 2006) [#1]
Is this posible and if yes tell me how pls
If not please tell me a way to simulate this pls
Thx in advance


kfprimm(Posted 2006) [#2]
MaximizeWindow?


Sanctus(Posted 2006) [#3]
yeah but some items go weird on the window...
when I create it I'd have to make it exactly screen szie and I dunno how to get descktop height and width...
Do you know?


kfprimm(Posted 2006) [#4]
im guessing by "some items go weird" you mean gadgets get resized, in that case use SetGadgetLayout to solve that...i'm not quite undestanding your problem though...


Grisu(Posted 2006) [#5]
You can use:
GadgetWidth (Desktop ())
GadgetHeight (Desktop ())
...to get the desktop size.

But as Khomy said, you need to apply setgadgetlayout() to each gadget on the window before doing any resizing stuff.


Sanctus(Posted 2006) [#6]
oky I got the SetGadgetLayout thing and also thx for the GadgetWidth (Desktop ()) and GadgetHeight (Desktop ())


JoshK(Posted 2006) [#7]
Create the window as a hidden window, maximize it, then show it.