diff --git a/documentation/Fl_Menu_Item.html b/documentation/Fl_Menu_Item.html index 3f1fc10fd..3ae3a389e 100644 --- a/documentation/Fl_Menu_Item.html +++ b/documentation/Fl_Menu_Item.html @@ -47,10 +47,8 @@ enum { // values for flags: }; - Typically menu items are statically defined; for example: -
![]() |
-+Typically menu items are statically defined; for example: +
Fl_Menu_Item popup[] = {
{"&alpha", FL_ALT+'a', the_cb, (void*)1},
{"&beta", FL_ALT+'b', the_cb, (void*)2},
@@ -69,15 +67,16 @@ Fl_Menu_Item popup[] = {
{"check", FL_ALT+'i', 0, 0, FL_MENU_TOGGLE|FL_MENU_VALUE},
{"box", FL_ALT+'i', 0, 0, FL_MENU_TOGGLE},
{0}};
-
- |

You should use the method functions to access structure members and not access them directly to avoid compatibility problems with future releases of FLTK.
diff --git a/documentation/Makefile b/documentation/Makefile index 155c938a0..87c5a2d23 100644 --- a/documentation/Makefile +++ b/documentation/Makefile @@ -1,5 +1,5 @@ # -# "$Id: Makefile,v 1.8 1999/02/22 22:17:48 mike Exp $" +# "$Id: Makefile,v 1.9 1999/03/10 20:18:37 mike Exp $" # # Documentation makefile for the Fast Light Tool Kit (FLTK). # @@ -134,7 +134,7 @@ fltk.d/index.html: $(HTMLFILES) fltk.ps: $(HTMLFILES) @echo "Generating PostScript documentation..." - @$(HTMLDOC) -f fltk.ps --jpeg --duplex --verbose --toclevels 2 --title FL.gif $(HTMLFILES) + @$(HTMLDOC) -f fltk.ps -t ps1 --duplex --verbose --toclevels 2 --title FL.gif $(HTMLFILES) fltk.pdf: $(HTMLFILES) @echo "Generating PDF documentation..." @@ -142,5 +142,5 @@ fltk.pdf: $(HTMLFILES) @$(HTMLDOC) -f fltk.pdf --jpeg --compression=9 --duplex --verbose --toclevels 2 --title FL.gif $(HTMLFILES) # -# End of "$Id: Makefile,v 1.8 1999/02/22 22:17:48 mike Exp $". +# End of "$Id: Makefile,v 1.9 1999/03/10 20:18:37 mike Exp $". # diff --git a/documentation/events.html b/documentation/events.html index 525087ff7..a7fcdb44c 100644 --- a/documentation/events.html +++ b/documentation/events.html @@ -192,132 +192,132 @@ calls XK_Multi_key.-
|
-The program shown to the right is called CubeView. The window you see
-is of class CubeViewUI, and is completely generated by FLUID, including
+
+FLUID is an amazingly powerful little program. However, this power
+comes at a price, as it is not always obvious how to accomplish seemingly
+simple tasks with it. This tutorial will show you how to generate a
+complete user interface class with FLUID that is used for the CubeView
+program below.
+
+
The window is of class CubeViewUI, and is completely generated by FLUID, including class member functions. The central display of the cube is a separate subclass of Fl_Gl_Window called CubeView. CubeViewUI manages CubeView using callbacks from the various sliders and rollers to manipulate the @@ -120,10 +119,7 @@ classes. href="Fl_Gl_Window.html#Fl_Gl_Window">Fl_Gl_Window to suit your purposes. - |
-![]() |
-
We will talk about the show() method that is highlighted shortly.
|
+
What we have is nice, but does little to show our cube. We have already
defined the CubeView class and we would like to show it within the
CubeViewUI.
@@ -323,10 +360,9 @@ Code:" field enter #include "CubeView.h"
This #include is important, as we have just included CubeView as a member of CubeViewUI, so any public CubeView methods are now available to CubeViewUI. - |
-![]() |
-

|
You can add class methods within FLUID that have nothing to do with the
GUI. An an example add a show function so that CubeViewUI can actually
appear on the screen.
@@ -356,12 +389,9 @@ appear on the screen.
show(). We don't need a return value here, and since we will
not be adding any widgets to this method FLUID will assign it a return
type of void.
+
Once the new method has been added, highlight its name and select New->Code->Code. Enter the method's code in the code window. - |
-![]() |
-
+
Edit/Group (F7)Creates a new Fl_Group and make all the currently selected widgets -children of it. +children of it.Edit/Ungroup (F8)Deletes the parent group if all the children of a group are selected.Edit/Overlays on/off (Alt+Shift+O)@@ -499,21 +533,17 @@ selection. This makes it easier to see box borders and how the layout looks. The overlays will be forced back on if you change the selection.Edit/Preferences (Alt+p)-
New/Code/FunctionCreates a new C function. You will be asked for a name for the @@ -550,28 +580,28 @@ which is described later in this chapter.Help/About FLUIDPops up a panel showing the version of FLUID.The Widget Panel-
"Revert" or "Cancel" put everything back to when you last brought up the panel or hit OK. However in the current version of FLUID, changes to "visible" attributes (such as the color, label, box) are not undone by revert or cancel. Changes to code like the callbacks are undone, however. + |
+![]() Widget AttributesName (text field)Name of a variable to declare, and to store a pointer to this diff --git a/documentation/intro.html b/documentation/intro.html index b782090a5..1e827babf 100644 --- a/documentation/intro.html +++ b/documentation/intro.html @@ -65,9 +65,8 @@ library, though, and has started being included on Linux distributions.
|