Author: AlbrechtS
Date: 2011-01-01 05:23:25 -0800 (Sat, 01 Jan 2011)
New Revision: 8154
Log:
Adjusted test/hello.cxx for potentially wider XFT fonts and changed the
code to match the documentation in basics.dox.


Modified:
   branches/branch-1.3/documentation/src/basics.dox
   branches/branch-1.3/test/hello.cxx

Modified: branches/branch-1.3/documentation/src/basics.dox
===================================================================
--- branches/branch-1.3/documentation/src/basics.dox    2011-01-01 12:21:31 UTC 
(rev 8153)
+++ branches/branch-1.3/documentation/src/basics.dox    2011-01-01 13:23:25 UTC 
(rev 8154)
@@ -19,11 +19,11 @@
 #include <FL/Fl_Box.H>
 
 int main(int argc, char **argv) {
-  Fl_Window *window = new Fl_Window(300,180);
-  Fl_Box *box = new Fl_Box(20,40,260,100,"Hello, World!");
+  Fl_Window *window = new Fl_Window(340,180);
+  Fl_Box *box = new Fl_Box(20,40,300,100,"Hello, World!");
   box->box(FL_UP_BOX);
+  box->labelfont(FL_BOLD+FL_ITALIC);
   box->labelsize(36);
-  box->labelfont(FL_BOLD+FL_ITALIC);
   box->labeltype(FL_SHADOW_LABEL);
   window->end();
   window->show(argc, argv);
@@ -47,12 +47,12 @@
 Fl_Box *box = new Fl_Box(20,40,260,100,"Hello, World!");
 \endcode
 
-Next, we set the type of box and the size, font, and style of the label:
+Next, we set the type of box and the font, size, and style of the label:
 
 \code
 box->box(FL_UP_BOX);
+box->labelfont(FL_BOLD+FL_ITALIC);
 box->labelsize(36);
-box->labelfont(FL_BOLD+FL_ITALIC);
 box->labeltype(FL_SHADOW_LABEL);
 \endcode
 

Modified: branches/branch-1.3/test/hello.cxx
===================================================================
--- branches/branch-1.3/test/hello.cxx  2011-01-01 12:21:31 UTC (rev 8153)
+++ branches/branch-1.3/test/hello.cxx  2011-01-01 13:23:25 UTC (rev 8154)
@@ -30,8 +30,9 @@
 #include <FL/Fl_Box.H>
 
 int main(int argc, char **argv) {
-  Fl_Window *window = new Fl_Window(300,180);
-  Fl_Box *box = new Fl_Box(FL_UP_BOX,20,40,260,100,"Hello, World!");
+  Fl_Window *window = new Fl_Window(340,180);
+  Fl_Box *box = new Fl_Box(20,40,300,100,"Hello, World!");
+  box->box(FL_UP_BOX);
   box->labelfont(FL_BOLD+FL_ITALIC);
   box->labelsize(36);
   box->labeltype(FL_SHADOW_LABEL);

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

Reply via email to