/* automagically close a window */ /* when the close gadget is pressed */ DoMethod(window,MUIM_Notify, MUIA_Window_CloseRequest, TRUE, window,3,MUIM_Set,MUIA_Window_Open,0);