How to close window.

BlitzMax Forums/MaxGUI Module/How to close window.

Keith Gilbert(Posted 2009) [#1]
Hi,
I have 2 windows in my application.
I want to only one window on some operation.
Im using the END keyword , it is closing the entire application.
What needs to be done to achieve this?


REDi(Posted 2009) [#2]
HideGadget or FreeGadget?


Brucey(Posted 2009) [#3]
Probably something like FreeGadget(window).

Where "window" is the reference to the window gadget you want to close.

You can also HideGadget(window), if you don't want to completely delete it, using ShowGadget(window) later to show it again.

<Edit> Like what REDi said.


jsp(Posted 2009) [#4]
Some code to play with: