diff --git a/documentation/basics.html b/documentation/basics.html index 94d0c2031..522e7d845 100644 --- a/documentation/basics.html +++ b/documentation/basics.html @@ -39,13 +39,13 @@ int main(int argc, char **argv) {
After including the required header files, the program then creates a -window:
+window. All following widgets will automatically be children of this window.Fl_Window *window = new Fl_Window(300,180);-
and a box with the "Hello, World!" string in it:
+Then we create a box with the "Hello, World!" string in it.
Fl_Box *box = new Fl_Box(20,40,260,100,"Hello, World!"); @@ -60,10 +60,15 @@ box->labelfont(FL_BOLD+FL_ITAL box->labeltype(FL_SHADOW_LABEL);-
Finally, we show the window and enter the FLTK event loop:
+We tell FLTK that we will not add any more widgets to the window.
window->end(); ++ +
Finally, we show the window and enter the FLTK event loop:
+ +window->show(argc, argv); return Fl::run();