> It works just fine here... .
>
> Matthias
>

Thanks Matthias, I did get it to work after Albrecht's reply. :)

I'm trying to show a window within a Fl_Group (that is itself made at runtime 
in a callback).  The callback works fine and I get the group showing as 
expected *except* for the subwindow.  I've followed the previous suggestions 
for how to show a subwindow but, (though I got that working on its own), I 
cannot get the below code to show the sub.

    void edit_cb2() {
        edit = new Fl_Group(110, 20, w()-120, h()-30);
        this->add(edit);
        edit->box(FL_BORDER_BOX);
        ...
        edit->redraw();

        Fl_Window sub(130, 30, 100, 100, "sub");
        sub.color(FL_WHITE); // add a background color
        sub.end();

        edit->end();
        sub.show();
      }

I've tried a variation with "edit->add(sub);", getting the same result.

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

Reply via email to