> > #include <FL/Fl.H>
> > #include <FL/Fl_Window.H>
> >
> > int main (int argc, char ** argv)
> > {
> > Fl_Window window(300, 300, "big window");
> > Fl_Window sub(10, 10, 100, 100, "sub");
> sub.color(FL_RED);
> sub.end();
> > window.end();
> > window.show();
> > sub.show();
> > return(Fl::run());
> > }
>
> It works just fine here... .
>
> Matthias
It works for me too. However, this doesn't
work (running on XP):
#include <FL/Fl.H>
#include <FL/Fl_Window.H>
int main (int argc, char ** argv)
{
Fl_Window window(300, 300, "big window");
window.show();
Fl_Window sub(10, 10, 100, 100, "sub");
sub.color(FL_RED);
sub.end();
window.end();
sub.show();
return(Fl::run());
}
But this does:
#include <FL/Fl.H>
#include <FL/Fl_Window.H>
int main (int argc, char ** argv)
{
Fl_Window window(300, 300, "big window");
window.end();
window.show();
Fl_Window sub(10, 10, 100, 100, "sub");
sub.color(FL_RED);
sub.end();
window.add(sub);
sub.show();
return(Fl::run());
}
Having had problems of my own with subwindows in the past,
I'm sort of curious. Anybody know what's up?
Thanks,
Stan
_______________________________________________
fltk mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk