From cf2e50b8c3aa36f85da6370336608938aa706f87 Mon Sep 17 00:00:00 2001
From: Matthias Melcher This chapter shows how to use the Fast Light User-Interface Designer
+("FLUID") to create your GUIs. Subchapters:
+9 - Programming with FLUID
-This chapter shows how to use the Fast Light User-Interface Designer
-("FLUID") to create your GUIs.
+What is FLUID?
+
The Fast Light User Interface Designer, or FLUID, is a graphical editor that is used to produce FLTK source code. FLUID @@ -50,7 +62,7 @@ structures. An unnamed widget has a blank name and no pointer is stored.
Widgets may either call a named callback function that you write in another source file, or you can supply a small piece of C++ source and FLUID will write a private callback function into the .cxx file.
-@@ -86,13 +98,13 @@ 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
+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. -
Compiling .fl files
+Compiling .fl files
FLUID can also be called as a command-line "compiler" to create the .cxx and .h @@ -125,7 +137,7 @@ files to be compiled: fluid -c $<
FLUID is an amazingly powerful little program. However, this power comes at a price as it is not always obvious how to @@ -478,7 +490,7 @@ extensions and you are in business. You can include the CubeViewUI.h -
The following sections describe each of the windows in FLUID. @@ -1338,5 +1350,14 @@ file to be used for all of the windows defined in your
The "Set" field controls the set number in the catalog file. The default set is 1 and rarely needs to be changed. +
#if 0 and #endif
+type construction. This will effectively avoid compilation of
+blocks of code. However, static code and data generated by this
+segment (menu items, images, include statements, etc.) will still
+be generated and likely cause compile-time warnings.
+