simon wrote: > Hello I have an application that has different menus. Every time I witch > between menus, the previous one stays open. I want to put a function inside > the callback function used to switch menus. The function will effectively > close the window when a new one opens. I sure FLTK has such a function but I > have been unable to find it. if anyone knows what I'm talking about I would > appreciate the help.
If you want to use it later again, then call window->hide() and window->show() to reuse it. If you don't want to use it later, then you could also use window->hide(), and maybe destroy the window object with "delete window", or with FLTK 1 maybe better using Fl::delete_widget(). Albrecht _______________________________________________ fltk mailing list [email protected] http://lists.easysw.com/mailman/listinfo/fltk

