1 \section{\class{wxTextAttrEx
}}\label{wxtextattrex
}
3 wxTextAttrEx is an extended version of wxTextAttr with more paragraph attributes.
4 Currently it is only used with
\helpref{wxRichTextCtrl
}{wxrichtextctrl
}.
6 It is intended that eventually, the members of wxTextAttrEx will
7 be folded into wxTextAttr, and wxTextAttr will be the official
8 cross-platform API for text controls that support attributes.
9 However, for now, wxTextAttrEx is provided as a means of enabling
10 extra functionality in wxRichTextCtrl, while retaining some compatibility
11 with the wxTextAttr API.
13 The most efficient method of accessing wxRichTextCtrl functionality
14 is a third attribute class,
\helpref{wxRichTextAttr
}{wxrichtextattr
}, which
15 optimizes its storage to allow it to be used for implementing objects
16 in a buffer, as well as access to that buffer.
18 This section only documents the additional members; see
\helpref{wxTextAttr
}{wxtextattr
} for
19 the remaining functions.
21 \wxheading{Derived from
}
23 \helpref{wxTextAttr
}{wxtextattr
}
25 \wxheading{Include files
}
27 <wx/richtext/richtextbuffer.h>
31 The following values can be passed to SetAlignment to determine
36 enum wxTextAttrAlignment
38 wxTEXT_ALIGNMENT_DEFAULT,
39 wxTEXT_ALIGNMENT_LEFT,
40 wxTEXT_ALIGNMENT_CENTRE,
41 wxTEXT_ALIGNMENT_CENTER = wxTEXT_ALIGNMENT_CENTRE,
42 wxTEXT_ALIGNMENT_RIGHT,
43 wxTEXT_ALIGNMENT_JUSTIFIED
48 These values are passed in a bitlist to SetFlags to determine
49 what attributes will be considered when setting the attributes
54 // Standard wxTextAttr constants
56 #define wxTEXT_ATTR_TEXT_COLOUR
0x0001
57 #define wxTEXT_ATTR_BACKGROUND_COLOUR
0x0002
58 #define wxTEXT_ATTR_FONT_FACE
0x0004
59 #define wxTEXT_ATTR_FONT_SIZE
0x0008
60 #define wxTEXT_ATTR_FONT_WEIGHT
0x0010
61 #define wxTEXT_ATTR_FONT_ITALIC
0x0020
62 #define wxTEXT_ATTR_FONT_UNDERLINE
0x0040
63 #define wxTEXT_ATTR_FONT \
64 wxTEXT_ATTR_FONT_FACE | wxTEXT_ATTR_FONT_SIZE | wxTEXT_ATTR_FONT_WEIGHT \
65 | wxTEXT_ATTR_FONT_ITALIC | wxTEXT_ATTR_FONT_UNDERLINE
66 #define wxTEXT_ATTR_ALIGNMENT
0x0080
67 #define wxTEXT_ATTR_LEFT_INDENT
0x0100
68 #define wxTEXT_ATTR_RIGHT_INDENT
0x0200
69 #define wxTEXT_ATTR_TABS
0x0400
71 // Extra formatting flags not in wxTextAttr
73 #define wxTEXT_ATTR_PARA_SPACING_AFTER
0x00000800
74 #define wxTEXT_ATTR_PARA_SPACING_BEFORE
0x00001000
75 #define wxTEXT_ATTR_LINE_SPACING
0x00002000
76 #define wxTEXT_ATTR_CHARACTER_STYLE_NAME
0x00004000
77 #define wxTEXT_ATTR_PARAGRAPH_STYLE_NAME
0x00008000
78 #define wxTEXT_ATTR_LIST_STYLE_NAME
0x00010000
79 #define wxTEXT_ATTR_BULLET_STYLE
0x00020000
80 #define wxTEXT_ATTR_BULLET_NUMBER
0x00040000
81 #define wxTEXT_ATTR_BULLET_TEXT
0x00080000
82 #define wxTEXT_ATTR_BULLET_NAME
0x00100000
83 #define wxTEXT_ATTR_URL
0x00200000
84 #define wxTEXT_ATTR_PAGE_BREAK
0x00400000
85 #define wxTEXT_ATTR_EFFECTS
0x00800000
86 #define wxTEXT_ATTR_OUTLINE_LEVEL
0x01000000
90 The following styles can be passed to wxTextAttrEx::SetBulletStyle:
94 #define wxTEXT_ATTR_BULLET_STYLE_NONE
0x00000000
95 #define wxTEXT_ATTR_BULLET_STYLE_ARABIC
0x00000001
96 #define wxTEXT_ATTR_BULLET_STYLE_LETTERS_UPPER
0x00000002
97 #define wxTEXT_ATTR_BULLET_STYLE_LETTERS_LOWER
0x00000004
98 #define wxTEXT_ATTR_BULLET_STYLE_ROMAN_UPPER
0x00000008
99 #define wxTEXT_ATTR_BULLET_STYLE_ROMAN_LOWER
0x00000010
100 #define wxTEXT_ATTR_BULLET_STYLE_SYMBOL
0x00000020
101 #define wxTEXT_ATTR_BULLET_STYLE_BITMAP
0x00000040
102 #define wxTEXT_ATTR_BULLET_STYLE_PARENTHESES
0x00000080
103 #define wxTEXT_ATTR_BULLET_STYLE_PERIOD
0x00000100
104 #define wxTEXT_ATTR_BULLET_STYLE_STANDARD
0x00000200
105 #define wxTEXT_ATTR_BULLET_STYLE_RIGHT_PARENTHESIS
0x00000400
106 #define wxTEXT_ATTR_BULLET_STYLE_OUTLINE
0x00000800
107 #define wxTEXT_ATTR_BULLET_STYLE_ALIGN_LEFT
0x00000000
108 #define wxTEXT_ATTR_BULLET_STYLE_ALIGN_RIGHT
0x00001000
109 #define wxTEXT_ATTR_BULLET_STYLE_ALIGN_CENTRE
0x00002000
113 Of these, wxTEXT
\_ATTR\_BULLET\_STYLE\_BITMAP is unimplemented.
115 The following constants can be passed to wxTextAttrEx::SetLineSpacing:
119 #define wxTEXT_ATTR_LINE_SPACING_NORMAL
10
120 #define wxTEXT_ATTR_LINE_SPACING_HALF
15
121 #define wxTEXT_ATTR_LINE_SPACING_TWICE
20
125 The following styles can be passed to wxTextAttrEx::SetTextEffects:
129 #define wxTEXT_ATTR_EFFECT_NONE
0x00000000
130 #define wxTEXT_ATTR_EFFECT_CAPITALS
0x00000001
131 #define wxTEXT_ATTR_EFFECT_SMALL_CAPITALS
0x00000002
132 #define wxTEXT_ATTR_EFFECT_STRIKETHROUGH
0x00000004
133 #define wxTEXT_ATTR_EFFECT_DOUBLE_STRIKETHROUGH
0x00000008
134 #define wxTEXT_ATTR_EFFECT_SHADOW
0x00000010
135 #define wxTEXT_ATTR_EFFECT_EMBOSS
0x00000020
136 #define wxTEXT_ATTR_EFFECT_OUTLINE
0x00000040
137 #define wxTEXT_ATTR_EFFECT_ENGRAVE
0x00000080
138 #define wxTEXT_ATTR_EFFECT_SUPERSCRIPT
0x00000100
139 #define wxTEXT_ATTR_EFFECT_SUBSCRIPT
0x00000200
143 Of these, only wxTEXT
\_ATTR\_EFFECT\_CAPITALS and wxTEXT
\_ATTR\_EFFECT\_STRIKETHROUGH are implemented.
147 \helpref{wxTextAttr
}{wxtextattr
},
\helpref{wxRichTextAttr
}{wxrichtextattr
},
\helpref{wxRichTextCtrl
}{wxrichtextctrl
}
149 \latexignore{\rtfignore{\wxheading{Members
}}}
152 \membersection{wxTextAttrEx::wxTextAttrEx
}\label{wxtextattrexwxtextattrex
}
154 \func{}{wxTextAttrEx
}{\void}
157 \func{}{wxTextAttrEx
}{\param{const wxTextAttrEx\&
}{attr
}}
161 \membersection{wxTextAttrEx::GetBulletFont
}\label{wxtextattrexgetbulletfont
}
163 \constfunc{const wxString\&
}{GetBulletFont
}{\void}
165 Returns a string containing the name of the font associated with the bullet symbol.
166 Only valid for attributes with wxTEXT
\_ATTR\_BULLET\_SYMBOL.
168 \membersection{wxTextAttrEx::GetBulletName
}\label{wxtextattrexgetbulletname
}
170 \constfunc{const wxString\&
}{GetBulletName
}{\void}
172 Returns the standard bullet name, applicable if the bullet style is wxTEXT
\_ATTR\_BULLET\_STYLE\_STANDARD.
173 Currently the following standard bullet names are supported:
175 \begin{itemize
}\itemsep=
0pt
176 \item {\tt standard/circle
}
177 \item {\tt standard/square
}
178 \item {\tt standard/diamond
}
179 \item {\tt standard/triangle
}
182 If you wish your application to support further bullet graphics, you can derive a
183 class from wxRichTextRenderer or wxRichTextStdRenderer, override
{\tt DrawStandardBullet
} and
{\tt EnumerateStandardBulletNames
}, and
184 set an instance of the class using
\helpref{wxRichTextBuffer::SetRenderer
}{wxrichtextbuffersetrenderer
}.
186 \membersection{wxTextAttrEx::GetBulletNumber
}\label{wxtextattrexgetbulletnumber
}
188 \constfunc{int
}{GetBulletNumber
}{\void}
190 Returns the bullet number.
192 \membersection{wxTextAttrEx::GetBulletStyle
}\label{wxtextattrexgetbulletstyle
}
194 \constfunc{int
}{GetBulletStyle
}{\void}
196 Returns the bullet style.
197 See
\helpref{wxTextAttrEx::SetBulletStyle
}{wxtextattrexsetbulletstyle
} for a list of available styles.
199 \membersection{wxTextAttrEx::GetBulletText
}\label{wxtextattrexgetbullettext
}
201 \constfunc{const wxString\&
}{GetBulletText
}{\void}
203 Returns the bullet text, which could be a symbol, or (for example) cached outline text.
205 \membersection{wxTextAttrEx::GetCharacterStyleName
}\label{wxtextattrexgetcharacterstylename
}
207 \constfunc{const wxString\&
}{GetCharacterStyleName
}{\void}
209 Returns the name of the character style.
211 \membersection{wxTextAttrEx::GetLineSpacing
}\label{wxtextattrexgetlinespacing
}
213 \constfunc{int
}{GetLineSpacing
}{\void}
215 Returns the line spacing value, one of wxTEXT
\_ATTR\_LINE\_SPACING\_NORMAL,
216 wxTEXT
\_ATTR\_LINE\_SPACING\_HALF, and wxTEXT
\_ATTR\_LINE\_SPACING\_TWICE.
218 \membersection{wxTextAttrEx::GetListStyleName
}\label{wxtextattrexgetliststylename
}
220 \constfunc{const wxString\&
}{GetListStyleName
}{\void}
222 Returns the name of the list style.
224 \membersection{wxTextAttrEx::GetOutlineLevel
}\label{wxtextattrexgetoutlinelevel
}
226 \constfunc{bool
}{GetOutlineLevel
}{\void}
228 Returns the outline level.
230 \membersection{wxTextAttrEx::GetParagraphSpacingAfter
}\label{wxtextattrexgetparagraphspacingafter
}
232 \constfunc{int
}{GetParagraphSpacingAfter
}{\void}
234 Returns the space in tenths of a millimeter after the paragraph.
236 \membersection{wxTextAttrEx::GetParagraphSpacingBefore
}\label{wxtextattrexgetparagraphspacingbefore
}
238 \constfunc{int
}{GetParagraphSpacingBefore
}{\void}
240 Returns the space in tenths of a millimeter before the paragraph.
242 \membersection{wxTextAttrEx::GetParagraphStyleName
}\label{wxtextattrexgetparagraphstylename
}
244 \constfunc{const wxString\&
}{GetParagraphStyleName
}{\void}
246 Returns the name of the paragraph style.
248 \membersection{wxTextAttrEx::GetTextEffectFlags
}\label{wxtextattrexgettexteffectflags
}
250 \constfunc{int
}{GetTextEffectFlags
}{\void}
252 Returns the text effect bits of interest. See
\helpref{wxTextAttr::SetFlags
}{wxtextattrsetflags
} for further information.
254 \membersection{wxTextAttrEx::GetTextEffects
}\label{wxtextattrexgettexteffects
}
256 \constfunc{int
}{GetTextEffects
}{\void}
258 Returns the text effects, a bit list of styles. See
\helpref{wxTextAttrEx::SetTextEffects
}{wxtextattrexsettexteffects
} for
261 \membersection{wxTextAttrEx::GetURL
}\label{wxtextattrexgeturl
}
263 \constfunc{const wxString\&
}{GetURL
}{\void}
265 Returns the URL for the content. Content with wxTEXT
\_ATTR\_URL style
266 causes wxRichTextCtrl to show a hand cursor over it, and wxRichTextCtrl generates
267 a wxTextUrlEvent when the content is clicked.
269 \membersection{wxTextAttrEx::HasBulletName
}\label{wxtextattrexhasbulletname
}
271 \constfunc{bool
}{HasBulletName
}{\void}
273 Returns
\true if the attribute object specifies a standard bullet name.
275 \membersection{wxTextAttrEx::HasBulletNumber
}\label{wxtextattrexhasbulletnumber
}
277 \constfunc{bool
}{HasBulletNumber
}{\void}
279 Returns
\true if the attribute object specifies a bullet number.
281 \membersection{wxTextAttrEx::HasBulletStyle
}\label{wxtextattrexhasbulletstyle
}
283 \constfunc{bool
}{HasBulletStyle
}{\void}
285 Returns
\true if the attribute object specifies a bullet style.
287 \membersection{wxTextAttrEx::HasBulletText
}\label{wxtextattrexhasbullettext
}
289 \constfunc{bool
}{HasBulletText
}{\void}
291 Returns
\true if the attribute object specifies bullet text (usually containing a symbol).
293 \membersection{wxTextAttrEx::HasCharacterStyleName
}\label{wxtextattrexhascharacterstylename
}
295 \constfunc{bool
}{HasCharacterStyleName
}{\void}
297 Returns
\true if the attribute object specifies a character style name.
299 \membersection{wxTextAttrEx::HasLineSpacing
}\label{wxtextattrexhaslinespacing
}
301 \constfunc{bool
}{HasLineSpacing
}{\void}
303 Returns
\true if the attribute object specifies line spacing.
305 \membersection{wxTextAttrEx::HasListStyleName
}\label{wxtextattrexhasliststylename
}
307 \constfunc{bool
}{HasListStyleName
}{\void}
309 Returns
\true if the attribute object specifies a list style name.
311 \membersection{wxTextAttrEx::HasOutlineLevel
}\label{wxtextattrexhasoutlinelevel
}
313 \constfunc{bool
}{HasOutlineLevel
}{\void}
315 Returns
\true if the attribute object specifies an outline level.
317 \membersection{wxTextAttrEx::HasPageBreak
}\label{wxtextattrexhaspagebreak
}
319 \constfunc{bool
}{HasPageBreak
}{\void}
321 Returns
\true if the attribute object specifies a page break before this paragraph.
323 \membersection{wxTextAttrEx::HasParagraphSpacingAfter
}\label{wxtextattrexhasparagraphspacingafter
}
325 \constfunc{bool
}{HasParagraphSpacingAfter
}{\void}
327 Returns
\true if the attribute object specifies spacing after a paragraph.
329 \membersection{wxTextAttrEx::HasParagraphSpacingBefore
}\label{wxtextattrexhasparagraphspacingbefore
}
331 \constfunc{bool
}{HasParagraphSpacingBefore
}{\void}
333 Returns
\true if the attribute object specifies spacing before a paragraph.
335 \membersection{wxTextAttrEx::HasParagraphStyleName
}\label{wxtextattrexhasparagraphstylename
}
337 \constfunc{bool
}{HasParagraphStyleName
}{\void}
339 Returns
\true if the attribute object specifies a paragraph style name.
341 \membersection{wxTextAttrEx::HasTextEffects
}\label{wxtextattrexhastexteffects
}
343 \constfunc{bool
}{HasTextEffects
}{\void}
345 Returns
\true if the attribute object specifies text effects.
347 \membersection{wxTextAttrEx::HasURL
}\label{wxtextattrexhasurl
}
349 \constfunc{bool
}{HasURL
}{\void}
351 Returns
\true if the attribute object specifies a URL.
353 \membersection{wxTextAttrEx::Init
}\label{wxtextattrexinit
}
355 \func{void
}{Init
}{\void}
357 Initialises this object.
359 \membersection{wxTextAttrEx::IsCharacterStyle
}\label{wxtextattrexischaracterstyle
}
361 \constfunc{bool
}{IsCharacterStyle
}{\void}
363 Returns
\true if the object represents a character style, that is,
364 the flags specify a font or a text background or foreground colour.
366 \membersection{wxTextAttrEx::IsDefault
}\label{wxtextattrexisdefault
}
368 \constfunc{bool
}{IsDefault
}{\void}
370 Returns
\false if we have any attributes set,
\true otherwise.
372 \membersection{wxTextAttrEx::IsParagraphStyle
}\label{wxtextattrexisparagraphstyle
}
374 \constfunc{bool
}{IsParagraphStyle
}{\void}
376 Returns
\true if the object represents a paragraph style, that is,
377 the flags specify alignment, indentation, tabs, paragraph spacing, or
380 \membersection{wxTextAttrEx::SetBulletFont
}\label{wxtextattrexsetbulletfont
}
382 \func{void
}{SetBulletFont
}{\param{const wxString\&
}{font
}}
384 Sets the name of the font associated with the bullet symbol.
385 Only valid for attributes with wxTEXT
\_ATTR\_BULLET\_SYMBOL.
387 \membersection{wxTextAttrEx::SetBulletNumber
}\label{wxtextattrexsetbulletnumber
}
389 \func{void
}{SetBulletNumber
}{\param{int
}{n
}}
391 Sets the bullet number.
393 \membersection{wxTextAttrEx::SetBulletName
}\label{wxtextattrexsetbulletname
}
395 \func{void
}{SetBulletName
}{\param{const wxString\&
}{name
}}
397 Sets the standard bullet name, applicable if the bullet style is wxTEXT
\_ATTR\_BULLET\_STYLE\_STANDARD.
398 See
\helpref{wxTextAttrEx::GetBulletName
}{wxtextattrexgetbulletname
} for a list
399 of supported names, and how to expand the range of supported types.
401 \membersection{wxTextAttrEx::SetBulletStyle
}\label{wxtextattrexsetbulletstyle
}
403 \func{void
}{SetBulletStyle
}{\param{int
}{style
}}
405 Sets the bullet style. The following styles can be passed:
409 #define wxTEXT_ATTR_BULLET_STYLE_NONE
0x00000000
410 #define wxTEXT_ATTR_BULLET_STYLE_ARABIC
0x00000001
411 #define wxTEXT_ATTR_BULLET_STYLE_LETTERS_UPPER
0x00000002
412 #define wxTEXT_ATTR_BULLET_STYLE_LETTERS_LOWER
0x00000004
413 #define wxTEXT_ATTR_BULLET_STYLE_ROMAN_UPPER
0x00000008
414 #define wxTEXT_ATTR_BULLET_STYLE_ROMAN_LOWER
0x00000010
415 #define wxTEXT_ATTR_BULLET_STYLE_SYMBOL
0x00000020
416 #define wxTEXT_ATTR_BULLET_STYLE_BITMAP
0x00000040
417 #define wxTEXT_ATTR_BULLET_STYLE_PARENTHESES
0x00000080
418 #define wxTEXT_ATTR_BULLET_STYLE_PERIOD
0x00000100
419 #define wxTEXT_ATTR_BULLET_STYLE_STANDARD
0x00000200
420 #define wxTEXT_ATTR_BULLET_STYLE_RIGHT_PARENTHESIS
0x00000400
421 #define wxTEXT_ATTR_BULLET_STYLE_OUTLINE
0x00000800
422 #define wxTEXT_ATTR_BULLET_STYLE_ALIGN_LEFT
0x00000000
423 #define wxTEXT_ATTR_BULLET_STYLE_ALIGN_RIGHT
0x00001000
424 #define wxTEXT_ATTR_BULLET_STYLE_ALIGN_CENTRE
0x00002000
428 Currently wxTEXT
\_ATTR\_BULLET\_STYLE\_BITMAP is not supported.
430 \membersection{wxTextAttrEx::SetBulletText
}\label{wxtextattrexsetbullettext
}
432 \func{void
}{SetBulletText
}{\param{const wxString\&
}{text
}}
434 Sets the bullet text, which could be a symbol, or (for example) cached outline text.
436 \membersection{wxTextAttrEx::SetCharacterStyleName
}\label{wxtextattrexsetcharacterstylename
}
438 \func{void
}{SetCharacterStyleName
}{\param{const wxString\&
}{name
}}
440 Sets the character style name.
442 \membersection{wxTextAttrEx::SetLineSpacing
}\label{wxtextattrexsetlinespacing
}
444 \func{void
}{SetLineSpacing
}{\param{int
}{spacing
}}
446 Sets the line spacing.
{\it spacing
} is a multiple, where
10 means single-spacing,
447 15 means
1.5 spacing, and
20 means double spacing. The following constants are
448 defined for convenience:
452 #define wxTEXT_ATTR_LINE_SPACING_NORMAL
10
453 #define wxTEXT_ATTR_LINE_SPACING_HALF
15
454 #define wxTEXT_ATTR_LINE_SPACING_TWICE
20
458 \membersection{wxTextAttrEx::SetListStyleName
}\label{wxtextattrexsetliststylename
}
460 \func{void
}{SetListStyleName
}{\param{const wxString\&
}{name
}}
462 Sets the list style name.
464 \membersection{wxTextAttrEx::SetOutlineLevel
}\label{wxtextattrexsetoutlinelevel
}
466 \func{void
}{SetOutlineLevel
}{\param{int
}{ level
}}
468 Specifies the outline level. Zero represents normal text. At present, the outline level is
469 not used, but may be used in future for determining list levels and for applications
470 that need to store
document structure information.
472 \membersection{wxTextAttrEx::SetPageBreak
}\label{wxtextattrexsetpagebreak
}
474 \func{void
}{SetPageBreak
}{\param{bool
}{ pageBreak = true
}}
476 Specifies a page break before this paragraph.
478 \membersection{wxTextAttrEx::SetParagraphSpacingAfter
}\label{wxtextattrexsetparagraphspacingafter
}
480 \func{void
}{SetParagraphSpacingAfter
}{\param{int
}{spacing
}}
482 Sets the spacing after a paragraph, in tenths of a millimetre.
484 \membersection{wxTextAttrEx::SetParagraphSpacingBefore
}\label{wxtextattrexsetparagraphspacingbefore
}
486 \func{void
}{SetParagraphSpacingBefore
}{\param{int
}{spacing
}}
488 Sets the spacing before a paragraph, in tenths of a millimetre.
490 \membersection{wxTextAttrEx::SetParagraphStyleName
}\label{wxtextattrexsetparagraphstylename
}
492 \func{void
}{SetParagraphStyleName
}{\param{const wxString\&
}{name
}}
494 Sets the name of the paragraph style.
496 \membersection{wxTextAttrEx::SetTextEffectFlags
}\label{wxtextattrexsettexteffectflags
}
498 \func{void
}{SetTextEffectFlags
}{\param{int
}{flags
}}
500 Sets the text effect bits of interest. You should also pass wxTEXT
\_ATTR\_EFFECTS to
\helpref{wxTextAttr::SetFlags
}{wxtextattrsetflags
}.
502 \membersection{wxTextAttrEx::SetTextEffects
}\label{wxtextattrexsettexteffects
}
504 \func{void
}{SetTextEffects
}{\param{int
}{effects
}}
506 Sets the text effects, a bit list of styles.
508 The following styles can be passed:
512 #define wxTEXT_ATTR_EFFECT_NONE
0x00000000
513 #define wxTEXT_ATTR_EFFECT_CAPITALS
0x00000001
514 #define wxTEXT_ATTR_EFFECT_SMALL_CAPITALS
0x00000002
515 #define wxTEXT_ATTR_EFFECT_STRIKETHROUGH
0x00000004
516 #define wxTEXT_ATTR_EFFECT_DOUBLE_STRIKETHROUGH
0x00000008
517 #define wxTEXT_ATTR_EFFECT_SHADOW
0x00000010
518 #define wxTEXT_ATTR_EFFECT_EMBOSS
0x00000020
519 #define wxTEXT_ATTR_EFFECT_OUTLINE
0x00000040
520 #define wxTEXT_ATTR_EFFECT_ENGRAVE
0x00000080
521 #define wxTEXT_ATTR_EFFECT_SUPERSCRIPT
0x00000100
522 #define wxTEXT_ATTR_EFFECT_SUBSCRIPT
0x00000200
526 Of these, only wxTEXT
\_ATTR\_EFFECT\_CAPITALS and wxTEXT
\_ATTR\_EFFECT\_STRIKETHROUGH are implemented.
527 wxTEXT
\_ATTR\_EFFECT\_CAPITALS capitalises text when displayed (leaving the case of the actual buffer
528 text unchanged), and wxTEXT
\_ATTR\_EFFECT\_STRIKETHROUGH draws a line through text.
530 To set effects, you should also pass wxTEXT
\_ATTR\_EFFECTS to
\helpref{wxTextAttr::SetFlags
}{wxtextattrsetflags
}, and call
\rtfsp
531 \helpref{wxTextAttrEx::SetTextEffectFlags
}{wxtextattrexsettexteffectflags
} with the styles (taken from the
532 above set) that you are interested in setting.
534 \membersection{wxTextAttrEx::SetURL
}\label{wxtextattrexseturl
}
536 \func{void
}{SetURL
}{\param{const wxString\&
}{url
}}
538 Sets the URL for the content. Sets the wxTEXT
\_ATTR\_URL style; content with this style
539 causes wxRichTextCtrl to show a hand cursor over it, and wxRichTextCtrl generates
540 a wxTextUrlEvent when the content is clicked.
542 \membersection{wxTextAttrEx::operator=
}\label{wxtextattrexoperatorassign
}
544 \func{void operator
}{operator=
}{\param{const wxTextAttr\&
}{attr
}}
546 Assignment from a wxTextAttr object.
548 \func{void operator
}{operator=
}{\param{const wxTextAttrEx\&
}{attr
}}
550 Assignment from a wxTextAttrEx object.