diff --git a/CHANGES b/CHANGES index f63162e37..2a949d80f 100644 --- a/CHANGES +++ b/CHANGES @@ -4,7 +4,7 @@ CHANGES IN FLTK 1.1.8 STR #1457, STR #1458, STR #1460, STR #1481, STR #1578, STR #1639, STR #1645, STR #1644, STR #1792, STR #1793, STR #1742, STR #1777, STR #1794, STR #1827, STR #1843, - STR #1796) + STR #1796, STR #1815) - Fixed 16 bit PNM image support (STR #1847) - Fixed exposure event on zero size windows (STR #1824) - Fixed overlay offset for OS X Quartz (STR #1729) diff --git a/documentation/basics.html b/documentation/basics.html index 522e7d845..efb8d6926 100644 --- a/documentation/basics.html +++ b/documentation/basics.html @@ -45,7 +45,8 @@ window. All following widgets will automatically be children of this window.
Fl_Window *window = new Fl_Window(300,180); -Then we create a box with the "Hello, World!" string in it.
+Then we create a box with the "Hello, World!" string in it. FLTK automatically adds +the new box to window, the current grouping widget.
Fl_Box *box = new Fl_Box(20,40,260,100,"Hello, World!"); @@ -60,7 +61,7 @@ box->labelfont(FL_BOLD+FL_ITAL box->labeltype(FL_SHADOW_LABEL);-
We tell FLTK that we will not add any more widgets to the window.
+We tell FLTK that we will not add any more widgets to window.
window->end(); @@ -105,6 +106,24 @@ defaults to NULL. The label string must be in static storage such as a string constant because FLTK does not make a copy of it - it just uses the pointer. +Creating Widget hierarchies
+ +Widgets are commonly ordered into functional groups, which +in turn may be grouped again, creating a hierarchy of widgets. +FLTK makes it easy to fill groups by automatically adding all widgets +that are created between a myGroup->begin() and +myGroup->end(). In this example, myGroup +would be the current group.
+ +Newly created groups and their derived widgets implicitly call +begin() in the constructor, effectively adding all +subsequently created widgets to itself until end() +is called.
+ +Setting the current group to NULL will stop automatic +hierarchies. New widgets can now be added manually using +Fl_Group::add(...) and Fl_Group::insert(...).
+Get/Set Methods
box->box(FL_UP_BOX) sets the type of box the