Show Window?

BlitzMax Forums/MaxGUI Module/Show Window?

BLaBZ(Posted 2012) [#1]
Hey Guys,

I'm constantly opening and closing windows in my applications, but for some reason when I close one window and want one of the previous windows to appear, it's bringing one of my other open windows to the front(such as google chrome or whatever else is running)

What's the proper way to hide one window and show another(that's already visible but may be behind other windows)?

Thanks!


jsp(Posted 2012) [#2]
HideGadget( oneWindow )
ShowGadget( anotherVisibleWindow )

will bring the anotherVisibleWindow to the front.


JoshK(Posted 2012) [#3]
Activate the new one first, then hide the old one.

ShowGadget( anotherVisibleWindow )
ActivateGadget( anotherVisibleWindow )
HideGadget( oneWindow )


BLaBZ(Posted 2012) [#4]
Great! Works like a charm :)