On 18.11.2010, at 13:43, [email protected] wrote:
> [..] Just
>> for debug purposes, what happens if show() is called on a window that
>> is already showing? Shall i set flags to avoid this?
>> cheers.
>
> Nothing happens, it's fine.
Actually, if will be sent to the front of all other windows.
If you call the destructor on an Fl_Window, the window will first be hidden,
and then the window AND ALL ITS CHILDREN will be deleted. It's very easy to get
rid of an entire dialog box that way.
If you want to quit a program and some windows are still showing
(win->is_visible()), you can loop through the main list of windows:
while (Fl::first_window()) {
Fl::first_window()->hide();
}
_______________________________________________
fltk mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk