is there a way of getting rid of the windows X

BlitzMax Forums/BlitzMax Programming/is there a way of getting rid of the windows X

im using basic graphics commands after a graphics statement. I cant find out how to do graphics in a window (im new to this and the help is really rubbish) i have however got the tools in a window. Problem is, if a user closes the default graphics window, the tools window locks up.