From 285dd4020e8e762f009ac334a45ebf03b5b9e75c Mon Sep 17 00:00:00 2001 From: Michael R Sweet Date: Fri, 22 Mar 2002 22:40:10 +0000 Subject: Working on the FLUID chapter, to do a new FLTK 1.1.0 beta release... git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2007 ea41ed52-d2ee-0310-a9c1-e6b18d33e121 --- documentation/fluid.html | 80 +++++++++++++++++++++-------------- documentation/fluid1.gif | Bin 9570 -> 6257 bytes documentation/fluid2.gif | Bin 37056 -> 28555 bytes documentation/fluid3-cxx.gif | Bin 0 -> 8841 bytes documentation/fluid3-gui.gif | Bin 0 -> 10636 bytes documentation/fluid3-style.gif | Bin 0 -> 8046 bytes documentation/fluid3.gif | Bin 17584 -> 0 bytes documentation/fluid4.gif | Bin 5976 -> 5123 bytes documentation/fluid_widget.gif | Bin 9938 -> 0 bytes documentation/fluid_widget_cxx.gif | Bin 0 -> 5620 bytes documentation/fluid_widget_gui.gif | Bin 0 -> 7886 bytes documentation/fluid_widget_style.gif | Bin 0 -> 5262 bytes 12 files changed, 48 insertions(+), 32 deletions(-) create mode 100644 documentation/fluid3-cxx.gif create mode 100644 documentation/fluid3-gui.gif create mode 100644 documentation/fluid3-style.gif delete mode 100644 documentation/fluid3.gif delete mode 100644 documentation/fluid_widget.gif create mode 100644 documentation/fluid_widget_cxx.gif create mode 100644 documentation/fluid_widget_gui.gif create mode 100644 documentation/fluid_widget_style.gif (limited to 'documentation') diff --git a/documentation/fluid.html b/documentation/fluid.html index c45f6fda3..f92a8cd93 100644 --- a/documentation/fluid.html +++ b/documentation/fluid.html @@ -68,50 +68,66 @@ save-as to write it to a file). -fg color -bg color -bg2 color +-scheme schemename - Changing the colors may be useful to see what your interface will look -at if the user calls it with the same switches. -

In the current version, if you don't go into the background (with -'&') then you will be able to abort FLUID by typing ^C on the terminal. It -will exit immediately, losing any changes.

+ +

Changing the colors may be useful to see what your interface +will look at if the user calls it with the same switches. +Similarly, using "-scheme plastic" will show how the interface +will look using the "plastic" scheme. + +

In the current version, if you don't put FLUID into the +background with '&' then you will be able to abort FLUID by +typing CTRL-C on the terminal. It will exit +immediately, losing any changes.

+

Running FLUID Under Microsoft Windows

-To run FLUID under WIN32, double-click on the FLUID.exe file. -You can also run FLUID from the Command Prompt window (FLUID always -runs in the background under WIN32). + +

To run FLUID under WIN32, double-click on the FLUID.exe +file. You can also run FLUID from the Command Prompt window. +FLUID always runs in the background under WIN32. +

Compiling .fl files

- FLUID can also be called as a command-line "compiler" to create the -.cxx and .h file from a .fl file. To do this type: + +

FLUID can also be called as a command-line +"compiler" to create the .cxx and .h +file from a .fl file. To do this type: +

-This will read the filename.fl file and write filename.cxx and -filename.h. The directory will be stripped, so they are written to -the current directory always. If there are any errors reading or -writing the files it will print the error and exit with a non-zero -code. In a makefile you can use a line like this: - +

A Short Tutorial

-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 provided with FLTK. +

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 provided with FLTK.

CubeView demo.

@@ -373,7 +389,7 @@ Code:" field enter #include "CubeView.h" CubeView as a member of CubeViewUI, so any public CubeView methods are now available to CubeViewUI. -

CubeView methods.

+

CubeView methods.

Defining the Callbacks

Each of the widgets we defined before adding CubeView can have @@ -636,7 +652,7 @@ You pick the subtype off of this menu. The boxtype to draw as a background for the widget.     -The FLUID widget dialog. +The FLUID widget dialog.

Many widgets will work, and draw faster, with a "frame" instead of a diff --git a/documentation/fluid1.gif b/documentation/fluid1.gif index a6526a292..cfdefd7a7 100644 Binary files a/documentation/fluid1.gif and b/documentation/fluid1.gif differ diff --git a/documentation/fluid2.gif b/documentation/fluid2.gif index c780d83c5..e551e84a5 100644 Binary files a/documentation/fluid2.gif and b/documentation/fluid2.gif differ diff --git a/documentation/fluid3-cxx.gif b/documentation/fluid3-cxx.gif new file mode 100644 index 000000000..420ccaf31 Binary files /dev/null and b/documentation/fluid3-cxx.gif differ diff --git a/documentation/fluid3-gui.gif b/documentation/fluid3-gui.gif new file mode 100644 index 000000000..5f757264c Binary files /dev/null and b/documentation/fluid3-gui.gif differ diff --git a/documentation/fluid3-style.gif b/documentation/fluid3-style.gif new file mode 100644 index 000000000..ecb55b40c Binary files /dev/null and b/documentation/fluid3-style.gif differ diff --git a/documentation/fluid3.gif b/documentation/fluid3.gif deleted file mode 100644 index 81672704f..000000000 Binary files a/documentation/fluid3.gif and /dev/null differ diff --git a/documentation/fluid4.gif b/documentation/fluid4.gif index 00e8d0806..d9e029273 100644 Binary files a/documentation/fluid4.gif and b/documentation/fluid4.gif differ diff --git a/documentation/fluid_widget.gif b/documentation/fluid_widget.gif deleted file mode 100644 index 5c9964f0c..000000000 Binary files a/documentation/fluid_widget.gif and /dev/null differ diff --git a/documentation/fluid_widget_cxx.gif b/documentation/fluid_widget_cxx.gif new file mode 100644 index 000000000..1c64d5d3f Binary files /dev/null and b/documentation/fluid_widget_cxx.gif differ diff --git a/documentation/fluid_widget_gui.gif b/documentation/fluid_widget_gui.gif new file mode 100644 index 000000000..61dd76ad6 Binary files /dev/null and b/documentation/fluid_widget_gui.gif differ diff --git a/documentation/fluid_widget_style.gif b/documentation/fluid_widget_style.gif new file mode 100644 index 000000000..d7791eb8b Binary files /dev/null and b/documentation/fluid_widget_style.gif differ -- cgit v1.2.3