Final changes for next beta release - typos and more updated images.

git-svn-id: file:///fltk/svn/fltk/trunk@224 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
This commit is contained in:
Michael R Sweet 1999-01-13 20:55:40 +00:00
parent 4df8d6d80a
commit fae4b6ae7e
11 changed files with 29 additions and 29 deletions

View File

@ -113,9 +113,9 @@ window-&gt;<A href=Fl_Window.html#Fl_Window.show>show</A>(argc, argv);
return <A href=functions.html#run>Fl::run</A>(); return <A href=functions.html#run>Fl::run</A>();
</PRE> </PRE>
</UL> </UL>
The resulting program will display the window below. You can quit the The resulting program will display the window below. You can quit the
program by closing the window or pressing the ESCape key. program by closing the window or pressing the ESCape key.
<CENTER><IMG src=./hello.C.gif></CENTER> <P ALIGN=CENTER><IMG src=./hello.C.gif></P>
<H3>Creating the Widgets</H3> <H3>Creating the Widgets</H3>
The widgets are created using the C++ <TT>new</TT> operator; the The widgets are created using the C++ <TT>new</TT> operator; the
arguments to the constructors are usually one of the following: arguments to the constructors are usually one of the following:

View File

@ -134,9 +134,9 @@ button-&gt;labelcolor(FL_WHITE);
<H2><A NAME=boxtypes>Box Types</A></H2> <H2><A NAME=boxtypes>Box Types</A></H2>
<P>The type <TT>Fl_Boxtype</TT> stored and returned in <A href=Fl_Widget.html#Fl_Widget.box> <P>The type <TT>Fl_Boxtype</TT> stored and returned in <A href=Fl_Widget.html#Fl_Widget.box>
<TT>Fl_Widget::box()</TT></A> is an enumeration defined in <A href=enumerations.html#enumerations> <TT>Fl_Widget::box()</TT></A> is an enumeration defined in <A href=enumerations.html#enumerations>
<TT>s.H&gt;</TT></A>: <TT>&lt;Enumerations.H&gt;</TT></A>:
<CENTER><IMG src=./boxtypes.gif width=80%></CENTER> <P ALIGN=CENTER><IMG src=./boxtypes.gif width=80%></P>
<TT>FL_NO_BOX</TT> means nothing is drawn at all, so whatever is <P><TT>FL_NO_BOX</TT> means nothing is drawn at all, so whatever is
already on the screen remains. The <TT>FL_..._FRAME</TT> types only already on the screen remains. The <TT>FL_..._FRAME</TT> types only
draw their edges, leaving the center unchanged. In the above diagram draw their edges, leaving the center unchanged. In the above diagram
the blue color is the area that is not drawn by the box. </P> the blue color is the area that is not drawn by the box. </P>

View File

@ -122,7 +122,7 @@ and &quot;replace all&quot;, &quot;replace next&quot;, and &quot;cancel&quot; bu
are just <TT>Fl_Input</TT> widgets, the &quot;replace all&quot; and &quot;cancel&quot; are just <TT>Fl_Input</TT> widgets, the &quot;replace all&quot; and &quot;cancel&quot;
buttons are <TT>Fl_Button</TT> widgets, and the &quot;replace next &quot; button buttons are <TT>Fl_Button</TT> widgets, and the &quot;replace next &quot; button
is a <TT>Fl_Return_Button</TT> widget: is a <TT>Fl_Return_Button</TT> widget:
<CENTER><IMG src=./editor-replace.gif></CENTER> <P ALIGN=CENTER><IMG src=./editor-replace.gif></P>
<UL> <UL>
<PRE> <PRE>
Fl_Window *replace_dlg = new Fl_Window(300, 105, &quot;Replace&quot;); Fl_Window *replace_dlg = new Fl_Window(300, 105, &quot;Replace&quot;);
@ -553,5 +553,5 @@ library. Also, the <TT>CC</TT> command may also be called <TT>gcc</TT>
<P>Congratulations, you've just built your own text editor! </P> <P>Congratulations, you've just built your own text editor! </P>
<H2>The Final Product</H2> <H2>The Final Product</H2>
The final editor window should look like the image below: The final editor window should look like the image below:
<CENTER><IMG src=./editor.gif></CENTER> <P ALIGN=CENTER><IMG src=./editor.gif></P>
</BODY></HTML> </BODY></HTML>

View File

@ -1,5 +1,5 @@
<HTML><BODY> <HTML><BODY>
<H1 ALIGN=RIGHT><A NAME=enumerations>C - FLTK Enumerations.H</A></H1> <H1 ALIGN=RIGHT><A NAME=enumerations>C - FLTK Enumerations</A></H1>
This appendix lists the enumerations provided in the <TT> This appendix lists the enumerations provided in the <TT>
&lt;FL/Enumerations.H&gt;</TT> header file, organized by section. &lt;FL/Enumerations.H&gt;</TT> header file, organized by section.
<H2>Version Numbers</H2> <H2>Version Numbers</H2>

Binary file not shown.

Before

Width:  |  Height:  |  Size: 8.4 KiB

After

Width:  |  Height:  |  Size: 18 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 8.9 KiB

After

Width:  |  Height:  |  Size: 12 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 13 KiB

After

Width:  |  Height:  |  Size: 17 KiB

View File

@ -31,7 +31,7 @@ use the inline functions and instead use &quot;pure&quot; FLTK. This will make
it a lot cleaner and make it easier to figure out how to call the FLTK it a lot cleaner and make it easier to figure out how to call the FLTK
functions. Unfortunately this conversion is harder than expected and functions. Unfortunately this conversion is harder than expected and
even Digital Domain's inhouse code still uses <TT>forms.H</TT> a lot. </P> even Digital Domain's inhouse code still uses <TT>forms.H</TT> a lot. </P>
<H2>Problems you will encounter</H2> <H2>Problems You Will Encounter</H2>
<P>Many parts of XForms use X-specific structures like <TT>XEvent</TT> <P>Many parts of XForms use X-specific structures like <TT>XEvent</TT>
in their interface. I did not emulate these! Unfortunately these in their interface. I did not emulate these! Unfortunately these
features (such as the &quot;canvas&quot; widget) are needed by most large features (such as the &quot;canvas&quot; widget) are needed by most large
@ -125,7 +125,7 @@ encountered when going from old Forms to XForms:
unless &quot;foreground()&quot; was called. FLTK acts like &quot;foreground()&quot; is unless &quot;foreground()&quot; was called. FLTK acts like &quot;foreground()&quot; is
called all the time. If you really want the fork behavior do &quot;if called all the time. If you really want the fork behavior do &quot;if
(fork()) exit(0)&quot; right at the start of your program. (fork()) exit(0)&quot; right at the start of your program.
<H3>You Cannot Use IRISGL windows or fl_queue</H3> <H3>You Cannot Use IRISGL Windows or fl_queue</H3>
If a Forms (not XForms) program if you wanted your own window for If a Forms (not XForms) program if you wanted your own window for
displaying things you would create a IRISGL window and draw in it, displaying things you would create a IRISGL window and draw in it,
periodically calling Forms to check if the user hit buttons on the periodically calling Forms to check if the user hit buttons on the

View File

@ -10,7 +10,7 @@ Appendix A</A>.
</H3> </H3>
The double version takes RGB values in the range 0.0 to 1.0. The The double version takes RGB values in the range 0.0 to 1.0. The
uchar version takes RGB values in the range 0 to 255. uchar version takes RGB values in the range 0 to 255.
<CENTER><IMG src=./fl_color_chooser.jpg></CENTER> <P ALIGN=CENTER><IMG src=./fl_color_chooser.jpg></P>
<P><TT>fl_color_chooser()</TT> pops up a window to let the user pick an <P><TT>fl_color_chooser()</TT> pops up a window to let the user pick an
arbitrary RGB color. They can pick the hue and saturation in the &quot;hue arbitrary RGB color. They can pick the hue and saturation in the &quot;hue
box&quot; on the left (hold down CTRL to just change the saturation), and box&quot; on the left (hold down CTRL to just change the saturation), and
@ -32,22 +32,22 @@ dithering. </P>
access with <A href=#fl_color><TT>fl_color()</TT></A> and lets the user access with <A href=#fl_color><TT>fl_color()</TT></A> and lets the user
pick one of them. It returns the new color index, or the old one if pick one of them. It returns the new color index, or the old one if
the user types ESC or clicks outside the window. the user types ESC or clicks outside the window.
<CENTER><IMG src=./fl_show_colormap.gif></CENTER> <P ALIGN=CENTER><IMG src=./fl_show_colormap.gif></P>
<H3><A name=fl_message>void fl_message(const char *, ...)</A></H3> <H3><A name=fl_message>void fl_message(const char *, ...)</A></H3>
Displays a printf-style message in a pop-up box with an &quot;OK&quot; button, Displays a printf-style message in a pop-up box with an &quot;OK&quot; button,
waits for the user to hit the button. The message will wrap to fit the waits for the user to hit the button. The message will wrap to fit the
window, or may be many lines by putting <TT>\n</TT> characters into it. window, or may be many lines by putting <TT>\n</TT> characters into it.
The enter key is a shortcut for the OK button. The enter key is a shortcut for the OK button.
<CENTER><IMG src=./fl_message.gif></CENTER> <P ALIGN=CENTER><IMG src=./fl_message.gif></P>
<H3><A name=fl_>void fl_alert(const char *, ...)</A></H3> <H3><A name=fl_>void fl_alert(const char *, ...)</A></H3>
Same as <TT>fl_message()</TT> except for the &quot;!&quot; symbol. Same as <TT>fl_message()</TT> except for the &quot;!&quot; symbol.
<CENTER><IMG src=./fl_alert.gif></CENTER> <P ALIGN=CENTER><IMG src=./fl_alert.gif></P>
<H3><A name=fl_ask>int fl_ask(const char *, ...)</A></H3> <H3><A name=fl_ask>int fl_ask(const char *, ...)</A></H3>
Displays a printf-style message in a pop-up box with an &quot;Yes&quot; and &quot;No&quot; Displays a printf-style message in a pop-up box with an &quot;Yes&quot; and &quot;No&quot;
button and waits for the user to hit a button. The return value is 1 button and waits for the user to hit a button. The return value is 1
if the user hits Yes, 0 if they pick No. The enter key is a shortcut if the user hits Yes, 0 if they pick No. The enter key is a shortcut
for Yes and ESC is a shortcut for No. for Yes and ESC is a shortcut for No.
<CENTER><IMG src=./fl_ask.gif></CENTER> <P ALIGN=CENTER><IMG src=./fl_ask.gif></P>
<H3><A name=fl_choice>int fl_choice(const char *q, const char *b0, <H3><A name=fl_choice>int fl_choice(const char *q, const char *b0,
const char *b1, const char *b2, ...)</A></H3> const char *b1, const char *b2, ...)</A></H3>
Shows the message with three buttons below it marked with the strings <TT> Shows the message with three buttons below it marked with the strings <TT>
@ -56,7 +56,7 @@ which button is hit. ESC is a shortcut for button 0 and the enter key
is a shortcut for button 1. Notice the &quot;misordered&quot; position of the is a shortcut for button 1. Notice the &quot;misordered&quot; position of the
buttons. You can hide buttons by passing <TT>NULL</TT> as their buttons. You can hide buttons by passing <TT>NULL</TT> as their
labels. labels.
<CENTER><IMG src=./fl_choice.gif></CENTER> <P ALIGN=CENTER><IMG src=./fl_choice.gif></P>
<H3><A name=fl_input>const char *fl_input(const char *label, const char <H3><A name=fl_input>const char *fl_input(const char *label, const char
*deflt = 0, ...)</A></H3> *deflt = 0, ...)</A></H3>
Pops up a window displaying a string, lets the user edit it, and Pops up a window displaying a string, lets the user edit it, and
@ -64,12 +64,12 @@ return the new value. The cancel button returns <TT>NULL</TT>. <I>The
returned pointer is only valid until the next time <TT>fl_input()</TT> returned pointer is only valid until the next time <TT>fl_input()</TT>
is called</I>. Due to back-compatability, the arguments to any printf is called</I>. Due to back-compatability, the arguments to any printf
commands in the label are after the default value. commands in the label are after the default value.
<CENTER><IMG src=./fl_input.gif></CENTER> <P ALIGN=CENTER><IMG src=./fl_input.gif></P>
<H3><A name=fl_password>const char *fl_password(const char *label, <H3><A name=fl_password>const char *fl_password(const char *label,
const char *deflt = 0, ...)</A></H3> const char *deflt = 0, ...)</A></H3>
Same as <TT>fl_input()</TT> except an <A href=Fl_Secret_Input.html#Fl_Secret_Input> Same as <TT>fl_input()</TT> except an <A href=Fl_Secret_Input.html#Fl_Secret_Input>
<TT>Fl_Secret_Input</TT></A> field is used. <TT>Fl_Secret_Input</TT></A> field is used.
<CENTER><IMG src=./fl_password.gif></CENTER> <P ALIGN=CENTER><IMG src=./fl_password.gif></P>
<H3><A name=fl_message_font>void fl_message_font(Fl_Font fontid, uchar <H3><A name=fl_message_font>void fl_message_font(Fl_Font fontid, uchar
size)</A></H3> size)</A></H3>
Change the font and font size used for the messages in all the popups. Change the font and font size used for the messages in all the popups.
@ -84,7 +84,7 @@ choose files from large directories. This file chooser has several
unique features, the major one being that the Tab key completes unique features, the major one being that the Tab key completes
filenames like it does in Emacs or tcsh, and the list always shows all filenames like it does in Emacs or tcsh, and the list always shows all
possible completions. possible completions.
<CENTER><IMG src=./filechooser.gif></CENTER> <P ALIGN=CENTER><IMG src=./filechooser.gif></P>
<TT>fl_file_chooser()</TT> pops up the file chooser, waits for the user <TT>fl_file_chooser()</TT> pops up the file chooser, waits for the user
to pick a file or Cancel, and then returns a pointer to that filename to pick a file or Cancel, and then returns a pointer to that filename
or <TT>NULL</TT> if Cancel is chosen. or <TT>NULL</TT> if Cancel is chosen.

View File

@ -133,7 +133,7 @@ This will build the library, FLUID tool, and all of the test programs.
<P>To install the library, become root and type &quot;make install&quot;. This <P>To install the library, become root and type &quot;make install&quot;. This
will copy the &quot;fluid&quot; executable to &quot;bindir&quot;, the header files to will copy the &quot;fluid&quot; executable to &quot;bindir&quot;, the header files to
&quot;includedir&quot;, and the library files to &quot;libdir&quot;. </P> &quot;includedir&quot;, and the library files to &quot;libdir&quot;. </P>
<H2>Building FLTK Under Micrsoft Windows</H2> <H2>Building FLTK Under Microsoft Windows</H2>
There are two ways to build FLTK under Microsoft Windows. The first There are two ways to build FLTK under Microsoft Windows. The first
is to use the Visual C++ 5.0 project files under the &quot;visualc&quot; is to use the Visual C++ 5.0 project files under the &quot;visualc&quot;
directory. Just open (or double-click on) the &quot;fltk.dsw&quot; file to get directory. Just open (or double-click on) the &quot;fltk.dsw&quot; file to get

View File

@ -1,6 +1,6 @@
<HTML><BODY> <HTML><BODY>
<H1 ALIGN=RIGHT><A NAME=license>G - Software License</A></H1> <H1 ALIGN=RIGHT><A NAME=license>G - Software License</A></H1>
<H2>GNU LIBRARY GENERAL PUBLIC LICENSE</H2> <H2 ALIGN=CENTER>GNU LIBRARY GENERAL PUBLIC LICENSE</H2>
<P ALIGN=CENTER>Version 2, June 1991 <P ALIGN=CENTER>Version 2, June 1991
<BR> Copyright (C) 1991 Free Software Foundation, Inc. <BR> Copyright (C) 1991 Free Software Foundation, Inc.
<BR> 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA <BR> 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA