> static void read(Fl_Widget*,void*)
> {
>     win->show();
> }

        Doing a redraw() after loading the data should work..
        definitely don't use hide/show to force the redraw.
        
        Just be sure to tell the *Window* to redraw.
        eg. in your callback:

static void read_callback(Fl_Widget *w, void*) {

    [[ ..load your data here, update charts.. ]]

    w->window()->redraw();      // schedule the parent window to redraw itself
}

        Or, if you have a direct pointer to the parent window
        of the widget that needs updating, tell that to redraw().

        When your callback returns, FLTK will handle doing the
        actual redraw.
_______________________________________________
fltk mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk

Reply via email to