Another doc patch from Tim
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@55343 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -117,77 +117,81 @@ public:
|
||||
support it (currently only GTK+ 2). For the other platforms, the markup is
|
||||
ignored.
|
||||
The supported tags are:
|
||||
|
||||
b
|
||||
|
||||
bold text
|
||||
|
||||
big
|
||||
|
||||
bigger text
|
||||
|
||||
i
|
||||
|
||||
italic text
|
||||
|
||||
s
|
||||
|
||||
strike-through text
|
||||
|
||||
sub
|
||||
|
||||
subscript text
|
||||
|
||||
sup
|
||||
|
||||
superscript text
|
||||
|
||||
small
|
||||
|
||||
smaller text
|
||||
|
||||
tt
|
||||
|
||||
monospaced text
|
||||
|
||||
u
|
||||
|
||||
underlined text
|
||||
|
||||
span
|
||||
|
||||
generic formatter tag; see Pango Markup for more information.
|
||||
<TABLE>
|
||||
<TR>
|
||||
<TD><b></TD>
|
||||
<TD>bold text</TD>
|
||||
</TR>
|
||||
<TR>
|
||||
<TD><big></TD>
|
||||
<TD>bigger text</TD>
|
||||
</TR>
|
||||
<TR>
|
||||
<TD><i></TD>
|
||||
<TD>italic text</TD>
|
||||
</TR>
|
||||
<TR>
|
||||
<TD><s></TD>
|
||||
<TD>strike-through text</TD>
|
||||
</TR>
|
||||
<TR>
|
||||
<TD><sub></TD>
|
||||
<TD>subscript text</TD>
|
||||
</TR>
|
||||
<TR>
|
||||
<TD><sup></TD>
|
||||
<TD>superscript text</TD>
|
||||
</TR>
|
||||
<TR>
|
||||
<TD><small></TD>
|
||||
<TD>smaller text</TD>
|
||||
</TR>
|
||||
<TR>
|
||||
<TD><tt></TD>
|
||||
<TD>monospaced text</TD>
|
||||
</TR>
|
||||
<TR>
|
||||
<TD><u></TD>
|
||||
<TD>underlined text</TD>
|
||||
</TR>
|
||||
<TR>
|
||||
<TD><span></TD>
|
||||
<TD>generic formatter tag; see Pango Markup for more information.</TD>
|
||||
</TR>
|
||||
</TABLE>
|
||||
|
||||
Note that the string must be well-formed (e.g. all tags must be correctly
|
||||
closed)
|
||||
otherwise it can be not shown correctly or at all.
|
||||
Also note that you need to escape the following special characters:
|
||||
|
||||
@b Special character
|
||||
|
||||
@b Escape as
|
||||
|
||||
@c
|
||||
|
||||
@c amp; or as @c
|
||||
|
||||
@c '
|
||||
|
||||
@c apos;
|
||||
|
||||
@c "
|
||||
|
||||
@c quot;
|
||||
|
||||
@c
|
||||
|
||||
@c lt;
|
||||
|
||||
@c
|
||||
|
||||
@c gt;
|
||||
|
||||
The non-escaped ampersand @c characters are interpreted as
|
||||
<TABLE>
|
||||
<TR>
|
||||
<TD>@b Special character</TD>
|
||||
<TD>@b Escape as</TD>
|
||||
</TR>
|
||||
<TR>
|
||||
<TD>@c &</TD>
|
||||
<TD>@c &amp; or as &&</TD>
|
||||
</TR>
|
||||
<TR>
|
||||
<TD>@c '</TD>
|
||||
<TD>@c &apos;</TD>
|
||||
</TR>
|
||||
<TR>
|
||||
<TD>@c "</TD>
|
||||
<TD>@c &quot;</TD>
|
||||
</TR>
|
||||
<TR>
|
||||
<TD>@c <</TD>
|
||||
<TD>@c &lt;</TD>
|
||||
</TR>
|
||||
<TR>
|
||||
<TD>@c ></TD>
|
||||
<TD>@c &gt;</TD>
|
||||
</TR>
|
||||
</TABLE>
|
||||
|
||||
The non-escaped ampersand @c & characters are interpreted as
|
||||
mnemonics; see wxControl::SetLabel.
|
||||
|
||||
Example:
|
||||
|
Reference in New Issue
Block a user