Added STR #1859 as a fluid documentation sub chapter
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@6044 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
This commit is contained in:
parent
ac55d8490c
commit
cf2e50b8c3
@ -5,10 +5,22 @@
|
||||
<BODY>
|
||||
<H1 ALIGN="RIGHT"><A NAME="FLUID">9 - Programming with FLUID</A></H1>
|
||||
|
||||
This chapter shows how to use the Fast Light User-Interface Designer
|
||||
("FLUID") to create your GUIs.
|
||||
<P>This chapter shows how to use the Fast Light User-Interface Designer
|
||||
("FLUID") to create your GUIs.</P>
|
||||
|
||||
<H2>What is FLUID?</H2>
|
||||
<P>Subchapters:
|
||||
<UL>
|
||||
<LI><A HREF="#what_is_fluid">What is FLUID</A></LI>
|
||||
<LI><A HREF="#fluid_under_linux">Running FLUID Under UNIX</A></LI>
|
||||
<LI><A HREF="#fluid_under_windows">Running FLUID Under Microsoft Windows</A></LI>
|
||||
<LI><A HREF="#compiling_fl_files">Compiling <TT>.fl</TT> files</A></LI>
|
||||
<LI><A HREF="#tutorial">A Short Tutorial</A></LI>
|
||||
<LI><A HREF="#references">FLUID Reference</A></LI>
|
||||
<LI><A HREF="#I18N">Internationalization with FLUID</A></LI>
|
||||
<LI><A HREF="#limitations">Know limitations</A></LI>
|
||||
</UL></P>
|
||||
|
||||
<H2><A NAME="what_is_fluid">What is FLUID?</A></H2>
|
||||
|
||||
<P>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.</P>
|
||||
<P>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 <TT>.cxx</TT> file.</P>
|
||||
<H2>Running FLUID Under UNIX</H2>
|
||||
<H2><A NAME="fluid_under_linux">Running FLUID Under UNIX</A></H2>
|
||||
To run FLUID under UNIX, type:
|
||||
<UL>
|
||||
<PRE>
|
||||
@ -86,13 +98,13 @@ background with '&' then you will be able to abort FLUID by
|
||||
typing <KBD>CTRL-C</KBD> on the terminal. It will exit
|
||||
immediately, losing any changes.</P>
|
||||
|
||||
<H2>Running FLUID Under Microsoft Windows</H2>
|
||||
<H2><A NAME="fluid_under_windows">Running FLUID Under Microsoft Windows</A></H2>
|
||||
|
||||
<P>To run FLUID under WIN32, double-click on the <I>FLUID.exe</I>
|
||||
file. You can also run FLUID from the Command Prompt window.
|
||||
FLUID always runs in the background under WIN32.
|
||||
|
||||
<H2>Compiling <TT>.fl</TT> files</H2>
|
||||
<H2><A NAME="compiling_fl_files">Compiling <TT>.fl</TT> files</A></H2>
|
||||
|
||||
<P>FLUID can also be called as a command-line
|
||||
"compiler" to create the <TT>.cxx</TT> and <TT>.h</TT>
|
||||
@ -125,7 +137,7 @@ files to be compiled:
|
||||
fluid -c $<
|
||||
</PRE></UL>
|
||||
|
||||
<H2>A Short Tutorial</H2>
|
||||
<H2><A NAME="tutorial">A Short Tutorial</A></H2>
|
||||
|
||||
<P>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
|
||||
|
||||
<!-- NEW PAGE -->
|
||||
|
||||
<H2>FLUID Reference</H2>
|
||||
<H2><A NAME="references">FLUID Reference</A></H2>
|
||||
|
||||
<P>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
|
||||
<P>The "Set" field controls the set number in the catalog file.
|
||||
The default set is 1 and rarely needs to be changed.
|
||||
|
||||
<H2><A NAME="limitations">Know limitations</A></H2>
|
||||
|
||||
Declaration Blocks can be used to temporarily block out already
|
||||
designed code using <code>#if 0</code> and <code>#endif</code>
|
||||
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.
|
||||
|
||||
</BODY>
|
||||
</HTML>
|
||||
|
Loading…
x
Reference in New Issue
Block a user