diff options
| author | Albrecht Schlosser <albrechts.fltk@online.de> | 2008-09-17 11:08:59 +0000 |
|---|---|---|
| committer | Albrecht Schlosser <albrechts.fltk@online.de> | 2008-09-17 11:08:59 +0000 |
| commit | 5cd6da0ae4729d3e2eecb054050772199ba33ba3 (patch) | |
| tree | 785a68749112c494d1d8e49a5ccc0fdc11c675a4 /FL/Fl_Browser.H | |
| parent | 4faea14c5488d86a52213004f4b6cbc4885f4596 (diff) | |
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
Diffstat (limited to 'FL/Fl_Browser.H')
| -rw-r--r-- | FL/Fl_Browser.H | 42 |
1 files changed, 21 insertions, 21 deletions
diff --git a/FL/Fl_Browser.H b/FL/Fl_Browser.H index e379e257e..8f0d6e10a 100644 --- a/FL/Fl_Browser.H +++ b/FL/Fl_Browser.H @@ -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("@C%d@.%s", 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(). */ |
