I inadvertently created a situation like this in an application.
When I run this program, click the button, and dismiss
the fl_alert() dialog, the window refuses to exit.  I wonder
if it's just my cockeyed system configuration?

TIA,
Stan

#include <FL/Fl.H>
#include <FL/Fl_Double_Window.H>
#include <FL/Fl_Button.H>
#include <FL/Fl_Widget.H>
#include <FL/fl_ask.H>

void cb(Fl_Widget* w, void*)
{
        fl_alert(w->label());
}
int main()
{
        Fl_Double_Window win(300, 300);
        Fl_Button* btn = new Fl_Button(100, 40, 100, 20, "Button");
        win.end();
        btn->callback(cb);
        btn->when(FL_WHEN_CHANGED);
        win.show();
        return Fl::run();
}

_______________________________________________
fltk mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk

Reply via email to