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 \helpref{wxRichtext
}{librarieslist
}
35 The following values can be passed to SetAlignment to determine
40 enum wxTextAttrAlignment
42 wxTEXT_ALIGNMENT_DEFAULT,
43 wxTEXT_ALIGNMENT_LEFT,
44 wxTEXT_ALIGNMENT_CENTRE,
45 wxTEXT_ALIGNMENT_CENTER = wxTEXT_ALIGNMENT_CENTRE,
46 wxTEXT_ALIGNMENT_RIGHT,
47 wxTEXT_ALIGNMENT_JUSTIFIED
52 These values are passed in a bitlist to SetFlags to determine
53 what attributes will be considered when setting the attributes
58 // Standard wxTextAttr constants
60 #define wxTEXT_ATTR_TEXT_COLOUR
0x0001
61 #define wxTEXT_ATTR_BACKGROUND_COLOUR
0x0002
62 #define wxTEXT_ATTR_FONT_FACE
0x0004
63 #define wxTEXT_ATTR_FONT_SIZE
0x0008
64 #define wxTEXT_ATTR_FONT_WEIGHT
0x0010
65 #define wxTEXT_ATTR_FONT_ITALIC
0x0020
66 #define wxTEXT_ATTR_FONT_UNDERLINE
0x0040
67 #define wxTEXT_ATTR_FONT \
68 wxTEXT_ATTR_FONT_FACE | wxTEXT_ATTR_FONT_SIZE | wxTEXT_ATTR_FONT_WEIGHT \
69 | wxTEXT_ATTR_FONT_ITALIC | wxTEXT_ATTR_FONT_UNDERLINE
70 #define wxTEXT_ATTR_ALIGNMENT
0x0080
71 #define wxTEXT_ATTR_LEFT_INDENT
0x0100
72 #define wxTEXT_ATTR_RIGHT_INDENT
0x0200
73 #define wxTEXT_ATTR_TABS
0x0400
75 // Extra formatting flags not in wxTextAttr
77 #define wxTEXT_ATTR_PARA_SPACING_AFTER
0x00000800
78 #define wxTEXT_ATTR_PARA_SPACING_BEFORE
0x00001000
79 #define wxTEXT_ATTR_LINE_SPACING
0x00002000
80 #define wxTEXT_ATTR_CHARACTER_STYLE_NAME
0x00004000
81 #define wxTEXT_ATTR_PARAGRAPH_STYLE_NAME
0x00008000
82 #define wxTEXT_ATTR_LIST_STYLE_NAME
0x00010000
83 #define wxTEXT_ATTR_BULLET_STYLE
0x00020000
84 #define wxTEXT_ATTR_BULLET_NUMBER
0x00040000
85 #define wxTEXT_ATTR_BULLET_TEXT
0x00080000
86 #define wxTEXT_ATTR_BULLET_NAME
0x00100000
87 #define wxTEXT_ATTR_URL
0x00200000
88 #define wxTEXT_ATTR_PAGE_BREAK
0x00400000
89 #define wxTEXT_ATTR_EFFECTS
0x00800000
90 #define wxTEXT_ATTR_OUTLINE_LEVEL
0x01000000
94 The following styles can be passed to wxTextAttrEx::SetBulletStyle:
98 #define wxTEXT_ATTR_BULLET_STYLE_NONE
0x00000000
99 #define wxTEXT_ATTR_BULLET_STYLE_ARABIC
0x00000001
100 #define wxTEXT_ATTR_BULLET_STYLE_LETTERS_UPPER
0x00000002
101 #define wxTEXT_ATTR_BULLET_STYLE_LETTERS_LOWER
0x00000004
102 #define wxTEXT_ATTR_BULLET_STYLE_ROMAN_UPPER
0x00000008
103 #define wxTEXT_ATTR_BULLET_STYLE_ROMAN_LOWER
0x00000010
104 #define wxTEXT_ATTR_BULLET_STYLE_SYMBOL
0x00000020
105 #define wxTEXT_ATTR_BULLET_STYLE_BITMAP
0x00000040
106 #define wxTEXT_ATTR_BULLET_STYLE_PARENTHESES
0x00000080
107 #define wxTEXT_ATTR_BULLET_STYLE_PERIOD
0x00000100
108 #define wxTEXT_ATTR_BULLET_STYLE_STANDARD
0x00000200
109 #define wxTEXT_ATTR_BULLET_STYLE_RIGHT_PARENTHESIS
0x00000400
110 #define wxTEXT_ATTR_BULLET_STYLE_OUTLINE
0x00000800
111 #define wxTEXT_ATTR_BULLET_STYLE_ALIGN_LEFT
0x00000000
112 #define wxTEXT_ATTR_BULLET_STYLE_ALIGN_RIGHT
0x00001000
113 #define wxTEXT_ATTR_BULLET_STYLE_ALIGN_CENTRE
0x00002000
117 Of these, wxTEXT
\_ATTR\_BULLET\_STYLE\_BITMAP is unimplemented.
119 The following constants can be passed to wxTextAttrEx::SetLineSpacing:
123 #define wxTEXT_ATTR_LINE_SPACING_NORMAL
10
124 #define wxTEXT_ATTR_LINE_SPACING_HALF
15
125 #define wxTEXT_ATTR_LINE_SPACING_TWICE
20
129 The following styles can be passed to wxTextAttrEx::SetTextEffects:
133 #define wxTEXT_ATTR_EFFECT_NONE
0x00000000
134 #define wxTEXT_ATTR_EFFECT_CAPITALS
0x00000001
135 #define wxTEXT_ATTR_EFFECT_SMALL_CAPITALS
0x00000002
136 #define wxTEXT_ATTR_EFFECT_STRIKETHROUGH
0x00000004
137 #define wxTEXT_ATTR_EFFECT_DOUBLE_STRIKETHROUGH
0x00000008
138 #define wxTEXT_ATTR_EFFECT_SHADOW
0x00000010
139 #define wxTEXT_ATTR_EFFECT_EMBOSS
0x00000020
140 #define wxTEXT_ATTR_EFFECT_OUTLINE
0x00000040
141 #define wxTEXT_ATTR_EFFECT_ENGRAVE
0x00000080
142 #define wxTEXT_ATTR_EFFECT_SUPERSCRIPT
0x00000100
143 #define wxTEXT_ATTR_EFFECT_SUBSCRIPT
0x00000200
147 Of these, only wxTEXT
\_ATTR\_EFFECT\_CAPITALS and wxTEXT
\_ATTR\_EFFECT\_STRIKETHROUGH are implemented.
151 \helpref{wxTextAttr
}{wxtextattr
},
\helpref{wxRichTextAttr
}{wxrichtextattr
},
\helpref{wxRichTextCtrl
}{wxrichtextctrl
}
153 \latexignore{\rtfignore{\wxheading{Members
}}}
156 \membersection{wxTextAttrEx::wxTextAttrEx
}\label{wxtextattrexwxtextattrex
}
158 \func{}{wxTextAttrEx
}{\void}
161 \func{}{wxTextAttrEx
}{\param{const wxTextAttrEx\&
}{attr
}}
165 \membersection{wxTextAttrEx::GetBulletFont
}\label{wxtextattrexgetbulletfont
}
167 \constfunc{const wxString\&
}{GetBulletFont
}{\void}
169 Returns a string containing the name of the font associated with the bullet symbol.
170 Only valid for attributes with wxTEXT
\_ATTR\_BULLET\_SYMBOL.
172 \membersection{wxTextAttrEx::GetBulletName
}\label{wxtextattrexgetbulletname
}
174 \constfunc{const wxString\&
}{GetBulletName
}{\void}
176 Returns the standard bullet name, applicable if the bullet style is wxTEXT
\_ATTR\_BULLET\_STYLE\_STANDARD.
177 Currently the following standard bullet names are supported:
179 \begin{itemize
}\itemsep=
0pt
180 \item {\tt standard/circle
}
181 \item {\tt standard/square
}
182 \item {\tt standard/diamond
}
183 \item {\tt standard/triangle
}
186 If you wish your application to support further bullet graphics, you can derive a
187 class from wxRichTextRenderer or wxRichTextStdRenderer, override
{\tt DrawStandardBullet
} and
{\tt EnumerateStandardBulletNames
}, and
188 set an instance of the class using
\helpref{wxRichTextBuffer::SetRenderer
}{wxrichtextbuffersetrenderer
}.
190 \membersection{wxTextAttrEx::GetBulletNumber
}\label{wxtextattrexgetbulletnumber
}
192 \constfunc{int
}{GetBulletNumber
}{\void}
194 Returns the bullet number.
196 \membersection{wxTextAttrEx::GetBulletStyle
}\label{wxtextattrexgetbulletstyle
}
198 \constfunc{int
}{GetBulletStyle
}{\void}
200 Returns the bullet style.
201 See
\helpref{wxTextAttrEx::SetBulletStyle
}{wxtextattrexsetbulletstyle
} for a list of available styles.
203 \membersection{wxTextAttrEx::GetBulletText
}\label{wxtextattrexgetbullettext
}
205 \constfunc{const wxString\&
}{GetBulletText
}{\void}
207 Returns the bullet text, which could be a symbol, or (for example) cached outline text.
209 \membersection{wxTextAttrEx::GetCharacterStyleName
}\label{wxtextattrexgetcharacterstylename
}
211 \constfunc{const wxString\&
}{GetCharacterStyleName
}{\void}
213 Returns the name of the character style.
215 \membersection{wxTextAttrEx::GetLineSpacing
}\label{wxtextattrexgetlinespacing
}
217 \constfunc{int
}{GetLineSpacing
}{\void}
219 Returns the line spacing value, one of wxTEXT
\_ATTR\_LINE\_SPACING\_NORMAL,
220 wxTEXT
\_ATTR\_LINE\_SPACING\_HALF, and wxTEXT
\_ATTR\_LINE\_SPACING\_TWICE.
222 \membersection{wxTextAttrEx::GetListStyleName
}\label{wxtextattrexgetliststylename
}
224 \constfunc{const wxString\&
}{GetListStyleName
}{\void}
226 Returns the name of the list style.
228 \membersection{wxTextAttrEx::GetOutlineLevel
}\label{wxtextattrexgetoutlinelevel
}
230 \constfunc{bool
}{GetOutlineLevel
}{\void}
232 Returns the outline level.
234 \membersection{wxTextAttrEx::GetParagraphSpacingAfter
}\label{wxtextattrexgetparagraphspacingafter
}
236 \constfunc{int
}{GetParagraphSpacingAfter
}{\void}
238 Returns the space in tenths of a millimeter after the paragraph.
240 \membersection{wxTextAttrEx::GetParagraphSpacingBefore
}\label{wxtextattrexgetparagraphspacingbefore
}
242 \constfunc{int
}{GetParagraphSpacingBefore
}{\void}
244 Returns the space in tenths of a millimeter before the paragraph.
246 \membersection{wxTextAttrEx::GetParagraphStyleName
}\label{wxtextattrexgetparagraphstylename
}
248 \constfunc{const wxString\&
}{GetParagraphStyleName
}{\void}
250 Returns the name of the paragraph style.
252 \membersection{wxTextAttrEx::GetTextEffectFlags
}\label{wxtextattrexgettexteffectflags
}
254 \constfunc{int
}{GetTextEffectFlags
}{\void}
256 Returns the text effect bits of interest. See
\helpref{wxTextAttr::SetFlags
}{wxtextattrsetflags
} for further information.
258 \membersection{wxTextAttrEx::GetTextEffects
}\label{wxtextattrexgettexteffects
}
260 \constfunc{int
}{GetTextEffects
}{\void}
262 Returns the text effects, a bit list of styles. See
\helpref{wxTextAttrEx::SetTextEffects
}{wxtextattrexsettexteffects
} for
265 \membersection{wxTextAttrEx::GetURL
}\label{wxtextattrexgeturl
}
267 \constfunc{const wxString\&
}{GetURL
}{\void}
269 Returns the URL for the content. Content with wxTEXT
\_ATTR\_URL style
270 causes wxRichTextCtrl to show a hand cursor over it, and wxRichTextCtrl generates
271 a wxTextUrlEvent when the content is clicked.
273 \membersection{wxTextAttrEx::HasBulletName
}\label{wxtextattrexhasbulletname
}
275 \constfunc{bool
}{HasBulletName
}{\void}
277 Returns
\true if the attribute object specifies a standard bullet name.
279 \membersection{wxTextAttrEx::HasBulletNumber
}\label{wxtextattrexhasbulletnumber
}
281 \constfunc{bool
}{HasBulletNumber
}{\void}
283 Returns
\true if the attribute object specifies a bullet number.
285 \membersection{wxTextAttrEx::HasBulletStyle
}\label{wxtextattrexhasbulletstyle
}
287 \constfunc{bool
}{HasBulletStyle
}{\void}
289 Returns
\true if the attribute object specifies a bullet style.
291 \membersection{wxTextAttrEx::HasBulletText
}\label{wxtextattrexhasbullettext
}
293 \constfunc{bool
}{HasBulletText
}{\void}
295 Returns
\true if the attribute object specifies bullet text (usually containing a symbol).
297 \membersection{wxTextAttrEx::HasCharacterStyleName
}\label{wxtextattrexhascharacterstylename
}
299 \constfunc{bool
}{HasCharacterStyleName
}{\void}
301 Returns
\true if the attribute object specifies a character style name.
303 \membersection{wxTextAttrEx::HasLineSpacing
}\label{wxtextattrexhaslinespacing
}
305 \constfunc{bool
}{HasLineSpacing
}{\void}
307 Returns
\true if the attribute object specifies line spacing.
309 \membersection{wxTextAttrEx::HasListStyleName
}\label{wxtextattrexhasliststylename
}
311 \constfunc{bool
}{HasListStyleName
}{\void}
313 Returns
\true if the attribute object specifies a list style name.
315 \membersection{wxTextAttrEx::HasOutlineLevel
}\label{wxtextattrexhasoutlinelevel
}
317 \constfunc{bool
}{HasOutlineLevel
}{\void}
319 Returns
\true if the attribute object specifies an outline level.
321 \membersection{wxTextAttrEx::HasPageBreak
}\label{wxtextattrexhaspagebreak
}
323 \constfunc{bool
}{HasPageBreak
}{\void}
325 Returns
\true if the attribute object specifies a page break before this paragraph.
327 \membersection{wxTextAttrEx::HasParagraphSpacingAfter
}\label{wxtextattrexhasparagraphspacingafter
}
329 \constfunc{bool
}{HasParagraphSpacingAfter
}{\void}
331 Returns
\true if the attribute object specifies spacing after a paragraph.
333 \membersection{wxTextAttrEx::HasParagraphSpacingBefore
}\label{wxtextattrexhasparagraphspacingbefore
}
335 \constfunc{bool
}{HasParagraphSpacingBefore
}{\void}
337 Returns
\true if the attribute object specifies spacing before a paragraph.
339 \membersection{wxTextAttrEx::HasParagraphStyleName
}\label{wxtextattrexhasparagraphstylename
}
341 \constfunc{bool
}{HasParagraphStyleName
}{\void}
343 Returns
\true if the attribute object specifies a paragraph style name.
345 \membersection{wxTextAttrEx::HasTextEffects
}\label{wxtextattrexhastexteffects
}
347 \constfunc{bool
}{HasTextEffects
}{\void}
349 Returns
\true if the attribute object specifies text effects.
351 \membersection{wxTextAttrEx::HasURL
}\label{wxtextattrexhasurl
}
353 \constfunc{bool
}{HasURL
}{\void}
355 Returns
\true if the attribute object specifies a URL.
357 \membersection{wxTextAttrEx::Init
}\label{wxtextattrexinit
}
359 \func{void
}{Init
}{\void}
361 Initialises this object.
363 \membersection{wxTextAttrEx::IsCharacterStyle
}\label{wxtextattrexischaracterstyle
}
365 \constfunc{bool
}{IsCharacterStyle
}{\void}
367 Returns
\true if the object represents a character style, that is,
368 the flags specify a font or a text background or foreground colour.
370 \membersection{wxTextAttrEx::IsDefault
}\label{wxtextattrexisdefault
}
372 \constfunc{bool
}{IsDefault
}{\void}
374 Returns
\false if we have any attributes set,
\true otherwise.
376 \membersection{wxTextAttrEx::IsParagraphStyle
}\label{wxtextattrexisparagraphstyle
}
378 \constfunc{bool
}{IsParagraphStyle
}{\void}
380 Returns
\true if the object represents a paragraph style, that is,
381 the flags specify alignment, indentation, tabs, paragraph spacing, or
384 \membersection{wxTextAttrEx::SetBulletFont
}\label{wxtextattrexsetbulletfont
}
386 \func{void
}{SetBulletFont
}{\param{const wxString\&
}{font
}}
388 Sets the name of the font associated with the bullet symbol.
389 Only valid for attributes with wxTEXT
\_ATTR\_BULLET\_SYMBOL.
391 \membersection{wxTextAttrEx::SetBulletNumber
}\label{wxtextattrexsetbulletnumber
}
393 \func{void
}{SetBulletNumber
}{\param{int
}{n
}}
395 Sets the bullet number.
397 \membersection{wxTextAttrEx::SetBulletName
}\label{wxtextattrexsetbulletname
}
399 \func{void
}{SetBulletName
}{\param{const wxString\&
}{name
}}
401 Sets the standard bullet name, applicable if the bullet style is wxTEXT
\_ATTR\_BULLET\_STYLE\_STANDARD.
402 See
\helpref{wxTextAttrEx::GetBulletName
}{wxtextattrexgetbulletname
} for a list
403 of supported names, and how to expand the range of supported types.
405 \membersection{wxTextAttrEx::SetBulletStyle
}\label{wxtextattrexsetbulletstyle
}
407 \func{void
}{SetBulletStyle
}{\param{int
}{style
}}
409 Sets the bullet style. The following styles can be passed:
413 #define wxTEXT_ATTR_BULLET_STYLE_NONE
0x00000000
414 #define wxTEXT_ATTR_BULLET_STYLE_ARABIC
0x00000001
415 #define wxTEXT_ATTR_BULLET_STYLE_LETTERS_UPPER
0x00000002
416 #define wxTEXT_ATTR_BULLET_STYLE_LETTERS_LOWER
0x00000004
417 #define wxTEXT_ATTR_BULLET_STYLE_ROMAN_UPPER
0x00000008
418 #define wxTEXT_ATTR_BULLET_STYLE_ROMAN_LOWER
0x00000010
419 #define wxTEXT_ATTR_BULLET_STYLE_SYMBOL
0x00000020
420 #define wxTEXT_ATTR_BULLET_STYLE_BITMAP
0x00000040
421 #define wxTEXT_ATTR_BULLET_STYLE_PARENTHESES
0x00000080
422 #define wxTEXT_ATTR_BULLET_STYLE_PERIOD
0x00000100
423 #define wxTEXT_ATTR_BULLET_STYLE_STANDARD
0x00000200
424 #define wxTEXT_ATTR_BULLET_STYLE_RIGHT_PARENTHESIS
0x00000400
425 #define wxTEXT_ATTR_BULLET_STYLE_OUTLINE
0x00000800
426 #define wxTEXT_ATTR_BULLET_STYLE_ALIGN_LEFT
0x00000000
427 #define wxTEXT_ATTR_BULLET_STYLE_ALIGN_RIGHT
0x00001000
428 #define wxTEXT_ATTR_BULLET_STYLE_ALIGN_CENTRE
0x00002000
432 Currently wxTEXT
\_ATTR\_BULLET\_STYLE\_BITMAP is not supported.
434 \membersection{wxTextAttrEx::SetBulletText
}\label{wxtextattrexsetbullettext
}
436 \func{void
}{SetBulletText
}{\param{const wxString\&
}{text
}}
438 Sets the bullet text, which could be a symbol, or (for example) cached outline text.
440 \membersection{wxTextAttrEx::SetCharacterStyleName
}\label{wxtextattrexsetcharacterstylename
}
442 \func{void
}{SetCharacterStyleName
}{\param{const wxString\&
}{name
}}
444 Sets the character style name.
446 \membersection{wxTextAttrEx::SetLineSpacing
}\label{wxtextattrexsetlinespacing
}
448 \func{void
}{SetLineSpacing
}{\param{int
}{spacing
}}
450 Sets the line spacing.
{\it spacing
} is a multiple, where
10 means single-spacing,
451 15 means
1.5 spacing, and
20 means double spacing. The following constants are
452 defined for convenience:
456 #define wxTEXT_ATTR_LINE_SPACING_NORMAL
10
457 #define wxTEXT_ATTR_LINE_SPACING_HALF
15
458 #define wxTEXT_ATTR_LINE_SPACING_TWICE
20
462 \membersection{wxTextAttrEx::SetListStyleName
}\label{wxtextattrexsetliststylename
}
464 \func{void
}{SetListStyleName
}{\param{const wxString\&
}{name
}}
466 Sets the list style name.
468 \membersection{wxTextAttrEx::SetOutlineLevel
}\label{wxtextattrexsetoutlinelevel
}
470 \func{void
}{SetOutlineLevel
}{\param{int
}{ level
}}
472 Specifies the outline level. Zero represents normal text. At present, the outline level is
473 not used, but may be used in future for determining list levels and for applications
474 that need to store
document structure information.
476 \membersection{wxTextAttrEx::SetPageBreak
}\label{wxtextattrexsetpagebreak
}
478 \func{void
}{SetPageBreak
}{\param{bool
}{ pageBreak = true
}}
480 Specifies a page break before this paragraph.
482 \membersection{wxTextAttrEx::SetParagraphSpacingAfter
}\label{wxtextattrexsetparagraphspacingafter
}
484 \func{void
}{SetParagraphSpacingAfter
}{\param{int
}{spacing
}}
486 Sets the spacing after a paragraph, in tenths of a millimetre.
488 \membersection{wxTextAttrEx::SetParagraphSpacingBefore
}\label{wxtextattrexsetparagraphspacingbefore
}
490 \func{void
}{SetParagraphSpacingBefore
}{\param{int
}{spacing
}}
492 Sets the spacing before a paragraph, in tenths of a millimetre.
494 \membersection{wxTextAttrEx::SetParagraphStyleName
}\label{wxtextattrexsetparagraphstylename
}
496 \func{void
}{SetParagraphStyleName
}{\param{const wxString\&
}{name
}}
498 Sets the name of the paragraph style.
500 \membersection{wxTextAttrEx::SetTextEffectFlags
}\label{wxtextattrexsettexteffectflags
}
502 \func{void
}{SetTextEffectFlags
}{\param{int
}{flags
}}
504 Sets the text effect bits of interest. You should also pass wxTEXT
\_ATTR\_EFFECTS to
\helpref{wxTextAttr::SetFlags
}{wxtextattrsetflags
}.
506 \membersection{wxTextAttrEx::SetTextEffects
}\label{wxtextattrexsettexteffects
}
508 \func{void
}{SetTextEffects
}{\param{int
}{effects
}}
510 Sets the text effects, a bit list of styles.
512 The following styles can be passed:
516 #define wxTEXT_ATTR_EFFECT_NONE
0x00000000
517 #define wxTEXT_ATTR_EFFECT_CAPITALS
0x00000001
518 #define wxTEXT_ATTR_EFFECT_SMALL_CAPITALS
0x00000002
519 #define wxTEXT_ATTR_EFFECT_STRIKETHROUGH
0x00000004
520 #define wxTEXT_ATTR_EFFECT_DOUBLE_STRIKETHROUGH
0x00000008
521 #define wxTEXT_ATTR_EFFECT_SHADOW
0x00000010
522 #define wxTEXT_ATTR_EFFECT_EMBOSS
0x00000020
523 #define wxTEXT_ATTR_EFFECT_OUTLINE
0x00000040
524 #define wxTEXT_ATTR_EFFECT_ENGRAVE
0x00000080
525 #define wxTEXT_ATTR_EFFECT_SUPERSCRIPT
0x00000100
526 #define wxTEXT_ATTR_EFFECT_SUBSCRIPT
0x00000200
530 Of these, only wxTEXT
\_ATTR\_EFFECT\_CAPITALS and wxTEXT
\_ATTR\_EFFECT\_STRIKETHROUGH are implemented.
531 wxTEXT
\_ATTR\_EFFECT\_CAPITALS capitalises text when displayed (leaving the case of the actual buffer
532 text unchanged), and wxTEXT
\_ATTR\_EFFECT\_STRIKETHROUGH draws a line through text.
534 To set effects, you should also pass wxTEXT
\_ATTR\_EFFECTS to
\helpref{wxTextAttr::SetFlags
}{wxtextattrsetflags
}, and call
\rtfsp
535 \helpref{wxTextAttrEx::SetTextEffectFlags
}{wxtextattrexsettexteffectflags
} with the styles (taken from the
536 above set) that you are interested in setting.
538 \membersection{wxTextAttrEx::SetURL
}\label{wxtextattrexseturl
}
540 \func{void
}{SetURL
}{\param{const wxString\&
}{url
}}
542 Sets the URL for the content. Sets the wxTEXT
\_ATTR\_URL style; content with this style
543 causes wxRichTextCtrl to show a hand cursor over it, and wxRichTextCtrl generates
544 a wxTextUrlEvent when the content is clicked.
546 \membersection{wxTextAttrEx::operator=
}\label{wxtextattrexoperatorassign
}
548 \func{void operator
}{operator=
}{\param{const wxTextAttr\&
}{attr
}}
550 Assignment from a wxTextAttr object.
552 \func{void operator
}{operator=
}{\param{const wxTextAttrEx\&
}{attr
}}
554 Assignment from a wxTextAttrEx object.