From a9456e49f421460d8439b651e40953e0ed7ef5ed Mon Sep 17 00:00:00 2001
From: Matthias Melcher After including the required header files, the program then creates a
-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();-- cgit v1.2.3