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:
parent
4df8d6d80a
commit
fae4b6ae7e
@ -115,7 +115,7 @@ return <A href=functions.html#run>Fl::run</A>();
|
||||
</UL>
|
||||
The resulting program will display the window below. You can quit the
|
||||
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>
|
||||
The widgets are created using the C++ <TT>new</TT> operator; the
|
||||
arguments to the constructors are usually one of the following:
|
||||
|
@ -134,9 +134,9 @@ button->labelcolor(FL_WHITE);
|
||||
<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>
|
||||
<TT>Fl_Widget::box()</TT></A> is an enumeration defined in <A href=enumerations.html#enumerations>
|
||||
<TT>s.H></TT></A>:
|
||||
<CENTER><IMG src=./boxtypes.gif width=80%></CENTER>
|
||||
<TT>FL_NO_BOX</TT> means nothing is drawn at all, so whatever is
|
||||
<TT><Enumerations.H></TT></A>:
|
||||
<P ALIGN=CENTER><IMG src=./boxtypes.gif width=80%></P>
|
||||
<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
|
||||
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>
|
||||
|
@ -122,7 +122,7 @@ and "replace all", "replace next", and "cancel" bu
|
||||
are just <TT>Fl_Input</TT> widgets, the "replace all" and "cancel"
|
||||
buttons are <TT>Fl_Button</TT> widgets, and the "replace next " button
|
||||
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>
|
||||
<PRE>
|
||||
Fl_Window *replace_dlg = new Fl_Window(300, 105, "Replace");
|
||||
@ -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>
|
||||
<H2>The Final Product</H2>
|
||||
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>
|
@ -1,5 +1,5 @@
|
||||
<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>
|
||||
<FL/Enumerations.H></TT> header file, organized by section.
|
||||
<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 |
@ -31,7 +31,7 @@ use the inline functions and instead use "pure" FLTK. This will make
|
||||
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
|
||||
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>
|
||||
in their interface. I did not emulate these! Unfortunately these
|
||||
features (such as the "canvas" widget) are needed by most large
|
||||
@ -125,7 +125,7 @@ encountered when going from old Forms to XForms:
|
||||
unless "foreground()" was called. FLTK acts like "foreground()" is
|
||||
called all the time. If you really want the fork behavior do "if
|
||||
(fork()) exit(0)" 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
|
||||
displaying things you would create a IRISGL window and draw in it,
|
||||
periodically calling Forms to check if the user hit buttons on the
|
||||
|
@ -10,7 +10,7 @@ Appendix A</A>.
|
||||
</H3>
|
||||
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.
|
||||
<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
|
||||
arbitrary RGB color. They can pick the hue and saturation in the "hue
|
||||
box" 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
|
||||
pick one of them. It returns the new color index, or the old one if
|
||||
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>
|
||||
Displays a printf-style message in a pop-up box with an "OK" button,
|
||||
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.
|
||||
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>
|
||||
Same as <TT>fl_message()</TT> except for the "!" 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>
|
||||
Displays a printf-style message in a pop-up box with an "Yes" and "No"
|
||||
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
|
||||
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,
|
||||
const char *b1, const char *b2, ...)</A></H3>
|
||||
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 "misordered" position of the
|
||||
buttons. You can hide buttons by passing <TT>NULL</TT> as their
|
||||
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
|
||||
*deflt = 0, ...)</A></H3>
|
||||
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>
|
||||
is called</I>. Due to back-compatability, the arguments to any printf
|
||||
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,
|
||||
const char *deflt = 0, ...)</A></H3>
|
||||
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.
|
||||
<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
|
||||
size)</A></H3>
|
||||
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
|
||||
filenames like it does in Emacs or tcsh, and the list always shows all
|
||||
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
|
||||
to pick a file or Cancel, and then returns a pointer to that filename
|
||||
or <TT>NULL</TT> if Cancel is chosen.
|
||||
|
@ -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 "make install". This
|
||||
will copy the "fluid" executable to "bindir", the header files to
|
||||
"includedir", and the library files to "libdir". </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
|
||||
is to use the Visual C++ 5.0 project files under the "visualc"
|
||||
directory. Just open (or double-click on) the "fltk.dsw" file to get
|
||||
|
@ -1,6 +1,6 @@
|
||||
<HTML><BODY>
|
||||
<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
|
||||
<BR> Copyright (C) 1991 Free Software Foundation, Inc.
|
||||
<BR> 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
|
||||
|
Loading…
Reference in New Issue
Block a user