Fixed bad '\' escape sequences (removed "unknown command" warnings).

And yes, I added some <tt> tags again, because e.g. "@." wouldn't
be very well readable in a proportional font (FL_Browser.H).


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@6279 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
This commit is contained in:
Albrecht Schlosser 2008-09-17 11:08:59 +00:00
parent 4faea14c54
commit 5cd6da0ae4
4 changed files with 27 additions and 27 deletions

View File

@ -152,32 +152,32 @@ public:
/**
The first form gets the current format code prefix character, which by
default is @. A string of formatting codes at the start of
default is '\@'. A string of formatting codes at the start of
each column are stripped off and used to modify how the rest of the
line is printed:
<UL>
<LI>@. Print rest of line, don't look for more '@' signs </LI>
<LI>@@ Print rest of line starting with '@' </LI>
<LI>@l Use a <BIG>large</BIG> (24 point) font </LI>
<LI>@m Use a <BIG>medium large</BIG> (18 point) font </LI>
<LI>@s Use a <SMALL>small</SMALL> (11 point) font </LI>
<LI>@b Use a <B>bold</B> font (adds FL_BOLD to font) </LI>
<LI>@i Use an <I>italic</I> font (adds FL_ITALIC to font) </LI>
<LI>@f or @t Use a fixed-pitch
<LI><tt>'\@.'</tt> Print rest of line, don't look for more '\@' signs </LI>
<LI><tt>'\@\@'</tt> Print rest of line starting with '\@' </LI>
<LI><tt>'\@l'</tt> Use a <BIG>large</BIG> (24 point) font </LI>
<LI><tt>'\@m'</tt> Use a <BIG>medium large</BIG> (18 point) font </LI>
<LI><tt>'\@s'</tt> Use a <SMALL>small</SMALL> (11 point) font </LI>
<LI><tt>'\@b'</tt> Use a <B>bold</B> font (adds FL_BOLD to font) </LI>
<LI><tt>'\@i'</tt> Use an <I>italic</I> font (adds FL_ITALIC to font) </LI>
<LI><tt>'\@f' or \@t</tt> Use a fixed-pitch
font (sets font to FL_COURIER) </LI>
<LI>@c Center the line horizontally </LI>
<LI>@r Right-justify the text </LI>
<LI>@B0, @B1, ... @B255 Fill the backgound with
<LI><tt>'\@c'</tt> Center the line horizontally </LI>
<LI><tt>'\@r'</tt> Right-justify the text </LI>
<LI><tt>'\@B0', '\@B1', ... '\@B255'</tt> Fill the backgound with
fl_color(n) </LI>
<LI>@C0, @C1, ... @C255 Use fl_color(n) to draw the text </LI>
<LI>@F0, @F1, ... Use fl_font(n) to draw the text </LI>
<LI>@S1, @S2, ... Use point size n to draw the text </LI>
<LI>@u or @_ Underline the text. </LI>
<LI>@- draw an engraved line through the middle. </LI>
<LI><tt>'\@C0', '\@C1', ... '\@C255'</tt> Use fl_color(n) to draw the text </LI>
<LI><tt>'\@F0', '\@F1', ...</tt> Use fl_font(n) to draw the text </LI>
<LI><tt>'\@S1', '\@S2', ...</tt> Use point size n to draw the text </LI>
<LI><tt>'\@u' or '\@_'</tt> Underline the text. </LI>
<LI><tt>'\@-'</tt> draw an engraved line through the middle. </LI>
</UL>
Notice that the @. command can be used to reliably
Notice that the '\@.' command can be used to reliably
terminate the parsing. To print a random string in a random color, use
sprintf(&quot;@C%d@.%s&quot;, color, string) and it will work even if the
sprintf("\@C%d\@.%s", color, string) and it will work even if the
string starts with a digit or has the format character in it.
<P>The second form sets the current prefix to c. Set the
prefix to 0 to disable formatting.
@ -187,14 +187,14 @@ public:
void format_char(char c) {format_char_ = c;}
/**
The first form gets the current column separator character. By default
this is '\t' (tab).
this is '\\t' (tab).
<P>The second form sets the column separator to c. This will
only have an effect if you also set column_widths().
*/
char column_char() const {return column_char_;}
/**
The first form gets the current column separator character. By default
this is '\t' (tab).
this is '\\t' (tab).
<P>The second form sets the column separator to c. This will
only have an effect if you also set column_widths().
*/

View File

@ -38,7 +38,7 @@
of text and lets the user edit it. Normally it is drawn with an
inset box and a white background. The text may contain any
characters (even 0), and will correctly display anything, using
^X notation for unprintable control characters and \nnn notation
^X notation for unprintable control characters and \\nnn notation
for unprintable characters with the high bit set. It assumes the
font can draw any characters in the ISO-8859-1 character set.</P>
@ -67,8 +67,8 @@
or deletes the selected region.</TD></TR>
<TR><TD><B>^E or End</B></TD><TD>Go to the end of line.</TD></TR>
<TR><TD><B>^F or Right</B></TD><TD>Move right</TD></TR>
<TR><TD><B>^K</B></TD><TD>Delete to the end of line (next \n character)
or deletes a single \n character. These deletions are all concatenated
<TR><TD><B>^K</B></TD><TD>Delete to the end of line (next \\n character)
or deletes a single \\n character. These deletions are all concatenated
into the clipboard.</TD></TR>
<TR><TD><B>^N or Down</B></TD><TD>Move down (for Fl_Multiline_Input
only, otherwise it moves to the next input field).</TD></TR>

View File

@ -42,9 +42,9 @@
<P>There is a single subclass,
Fl_Multiline_Output, which allows you to display multiple lines of
text. </P>
<P>The text may contain any characters except \0, and will correctly
<P>The text may contain any characters except \\0, and will correctly
display anything, using ^X notation for unprintable control characters
and \nnn notation for unprintable characters with the high bit set. It
and \\nnn notation for unprintable characters with the high bit set. It
assumes the font can draw any characters in the ISO-Latin1 character
set.
*/

View File

@ -114,7 +114,7 @@
<P>The pattern argument can be a NULL
string or "*" to list all files, or it can be a
series of descriptions and filter strings separated by tab
characters (\t). The format of filters is either
characters (\\t). The format of filters is either
"Description text (patterns)" or just "patterns". A file chooser
that provides filters for HTML and image files might look like: