I use this code: Appearance WINDOW 2,"Comment",(0,0)-(500,200), _kDocumentWindowClass, _kWindowStandardDocumentAttributes It gives me a nice window with the min,max and close buttons. All the buttons but the close button work. I couldnt find anything in the docs to tell me how to actually make the window close when you press the close button. Any pointers? Thanks, Tom