On 14.06.2011, at 15:57, asif saeed wrote:

> Hi,
> 
> Can I instantiate different widgets first, instantiate a window last and
> only then attach those widgets to the window instantiated in the end? I have
> just done it. The code does run but shows nothing. I await your input.

Yes, you can, but why?

Anyway, something like this should work:

main(...) {

Fl_Button *b = new Fl_Button(10, 10, 100, 100, "X");
Fl_Window *w = new Fl_Window(500, 500);
w->add(b);
w->show(argc, argv);
Fl::run();

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

Reply via email to