Author: matt
Date: 2007-10-06 10:54:25 -0700 (Sat, 06 Oct 2007)
New Revision: 5944
Log:
STR #1718: added short documentation to Basics that briefly explains automatic 
parenting.

Modified:
   branches/branch-1.1/documentation/basics.html

Modified: branches/branch-1.1/documentation/basics.html
===================================================================
--- branches/branch-1.1/documentation/basics.html       2007-10-06 17:42:05 UTC 
(rev 5943)
+++ branches/branch-1.1/documentation/basics.html       2007-10-06 17:54:25 UTC 
(rev 5944)
@@ -39,13 +39,13 @@
 <!-- NEED 2in -->
 
 <P>After including the required header files, the program then creates a
-window:</P>
+window. All following widgets will automatically be children of this 
window.</P>
 
 <UL><PRE>
 Fl_Window *window = new <A 
href="Fl_Window.html#Fl_Window">Fl_Window</A>(300,180);
 </PRE></UL>
 
-<P>and a box with the &quot;Hello, World!&quot; string in it:</P>
+<P>Then we create a box with the &quot;Hello, World!&quot; string in it.</P>
 
 <UL><PRE>
 Fl_Box *box = new <A 
href="Fl_Box.html#Fl_Box">Fl_Box</A>(20,40,260,100,&quot;Hello, World!&quot;);
@@ -60,10 +60,15 @@
 box-&gt;<A 
href=Fl_Widget.html#Fl_Widget.labeltype>labeltype</A>(FL_SHADOW_LABEL);
 </PRE></UL>
 
+<P>We tell FLTK that we will not add any more widgets to the window.</P>
+
+<UL><PRE>
+window-&gt;<A href=Fl_Group.html#Fl_Group.end>end</A>();
+</PRE></UL>
+
 <P>Finally, we show the window and enter the FLTK event loop:</P>
 
 <UL><PRE>
-window-&gt;<A href=Fl_Group.html#Fl_Group.end>end</A>();
 window-&gt;<A href=Fl_Window.html#Fl_Window.show>show</A>(argc, argv);
 return <A href="Fl.html#Fl.run">Fl::run</A>();
 </PRE></UL>

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

Reply via email to