Fl_Window *win = new Fl_Window(width, height, "title");
b1 = new Fl_Button(0, 0, 120, 30);
win->end();
b2 = new Fl_Button(130, 0, 120, 30);
win->show();//argc,argv);
Fl::run();
Here, second button b2
will not be shown, because after the call to end()
, it is inserted into somewhere else not into win
. After browsing through official docs and googling I still cannot understand the idea behind it, and how am I supposed to insert a new button into the window that is not currently selected for insertion? Is there something like win->begin()
?
By the way FLTK docs are rather a machine generated reference, very inconvenient for a learner, any good unofficial resource known?