Stan wrote:
> Just a sanity check ... you ran it untouched?  That is,
> with nothing at all after the win->label()?

        Yes, untouched.

        The only thing I added were the missing #include's
        at the top for FLTK. Here's the exact program I used below.

        Also, it ran OK on WinXP + VS 2005 Express + FLTK 1.1.7
        (I didn't have 1.1.x available on this windows box)

        Kinda sounds like the problem you're seeing might be
        Solaris specific, or possibly even the remote X display,
        not sure. Try doing the tests locally on the solaris box,
        assuming it has a console.

---------------------------------------------------------------

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

void cb(Fl_Widget*, void* v)
{
    Fl_Double_Window* w = static_cast<Fl_Double_Window*>(v);
    w->label("Changed it");
    /// what now?
    //  w->hide(); w->show();
}

int main()
{
    Fl_Double_Window win(300, 300, "A Window");
    Fl_Button* btn = new Fl_Button(100, 100, 100, 30, "Try It");
    win.end();
    btn->callback(cb, &win);
    win.show();
    return Fl::run();
}
_______________________________________________
fltk mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk

Reply via email to