]> git.saurik.com Git - wxWidgets.git/blob - docs/latex/wx/richtextctrl.tex
fixed syntax errors (incorrect use of _)
[wxWidgets.git] / docs / latex / wx / richtextctrl.tex
1 \section{\class{wxRichTextCtrl}}\label{wxrichtextctrl}
2
3 wxRichTextCtrl provides a generic, ground-up implementation of a text control
4 capable of showing multiple styles and images.
5
6 \wxheading{Derived from}
7
8 wxTextCtrlBase
9
10 \wxheading{Include files}
11
12 <wx/richtext/richtextctrl.h>
13
14 \wxheading{Data structures}
15
16 \latexignore{\rtfignore{\wxheading{Members}}}
17
18 \membersection{wxRichTextCtrl::wxRichTextCtrl}\label{wxrichtextctrlwxrichtextctrl}
19
20 \func{}{wxRichTextCtrl}{\void}
21
22 \func{}{wxRichTextCtrl}{\param{wxWindow* }{parent}, \param{wxWindowID }{id = wxID\_ANY}, \param{const wxString\& }{value = wxEmptyString}, \param{const wxPoint\& }{pos = wxDefaultPosition}, \param{const wxSize\& }{size = wxDefaultSize}, \param{long }{style = wxRE\_MULTILINE}}
23
24 Constructors.
25
26 \membersection{wxRichTextCtrl::\destruct{wxRichTextCtrl}}\label{wxrichtextctrldtor}
27
28 \func{}{\destruct{wxRichTextCtrl}}{\void}
29
30 Destructor.
31
32 \membersection{wxRichTextCtrl::AddImage}\label{wxrichtextctrladdimage}
33
34 \func{wxRichTextRange}{AddImage}{\param{const wxImage\& }{image}}
35
36 Adds an image to the control's buffer.
37
38 \membersection{wxRichTextCtrl::AddParagraph}\label{wxrichtextctrladdparagraph}
39
40 \func{wxRichTextRange}{AddParagraph}{\param{const wxString\& }{text}}
41
42 Adds a new paragraph of text to the end of the buffer.
43
44 \membersection{wxRichTextCtrl::AppendText}\label{wxrichtextctrlappendtext}
45
46 \func{void}{AppendText}{\param{const wxString\& }{text}}
47
48 Sets the insertion point to the end of the buffer and writes the text.
49
50 \membersection{wxRichTextCtrl::ApplyAlignmentToSelection}\label{wxrichtextctrlapplyalignmenttoselection}
51
52 \func{bool}{ApplyAlignmentToSelection}{\param{wxTextAttrAlignment }{alignment}}
53
54 Applies the given alignment to the selection (undoable).
55
56 For alignment values, see \helpref{wxTextAttrEx}{wxtextattrex}.
57
58 \membersection{wxRichTextCtrl::ApplyBoldToSelection}\label{wxrichtextctrlapplyboldtoselection}
59
60 \func{bool}{ApplyBoldToSelection}{\void}
61
62 Apples bold to the selection (undoable).
63
64 \membersection{wxRichTextCtrl::ApplyItalicToSelection}\label{wxrichtextctrlapplyitalictoselection}
65
66 \func{bool}{ApplyItalicToSelection}{\void}
67
68 Applies italic to the selection (undoable).
69
70 \membersection{wxRichTextCtrl::ApplyUnderlineToSelection}\label{wxrichtextctrlapplyunderlinetoselection}
71
72 \func{bool}{ApplyUnderlineToSelection}{\void}
73
74 Applies underline to the selection (undoable).
75
76 \membersection{wxRichTextCtrl::BatchingUndo}\label{wxrichtextctrlbatchingundo}
77
78 \constfunc{bool}{BatchingUndo}{\void}
79
80 Returns \true if undo commands are being batched.
81
82 \membersection{wxRichTextCtrl::BeginAlignment}\label{wxrichtextctrlbeginalignment}
83
84 \func{bool}{BeginAlignment}{\param{wxTextAttrAlignment }{alignment}}
85
86 Begins using alignment
87
88 For alignment values, see \helpref{wxTextAttrEx}{wxtextattrex}.
89
90 \membersection{wxRichTextCtrl::BeginBatchUndo}\label{wxrichtextctrlbeginbatchundo}
91
92 \func{bool}{BeginBatchUndo}{\param{const wxString\& }{cmdName}}
93
94 Starts batching undo history for commands.
95
96 \membersection{wxRichTextCtrl::BeginBold}\label{wxrichtextctrlbeginbold}
97
98 \func{bool}{BeginBold}{\void}
99
100 Begins using bold.
101
102 \membersection{wxRichTextCtrl::BeginCharacterStyle}\label{wxrichtextctrlbegincharacterstyle}
103
104 \func{bool}{BeginCharacterStyle}{\param{const wxString\& }{characterStyle}}
105
106 Begins using the named character style.
107
108 \membersection{wxRichTextCtrl::BeginFont}\label{wxrichtextctrlbeginfont}
109
110 \func{bool}{BeginFont}{\param{const wxFont\& }{font}}
111
112 Begins using this font.
113
114 \membersection{wxRichTextCtrl::BeginFontSize}\label{wxrichtextctrlbeginfontsize}
115
116 \func{bool}{BeginFontSize}{\param{int }{pointSize}}
117
118 Begins using the given point size.
119
120 \membersection{wxRichTextCtrl::BeginItalic}\label{wxrichtextctrlbeginitalic}
121
122 \func{bool}{BeginItalic}{\void}
123
124 Begins using italic.
125
126 \membersection{wxRichTextCtrl::BeginLeftIndent}\label{wxrichtextctrlbeginleftindent}
127
128 \func{bool}{BeginLeftIndent}{\param{int }{leftIndent}, \param{int }{leftSubIndent = 0}}
129
130 Begins applying a left indent and subindent in tenths of a millimetre.
131
132 The sub-indent is an offset from the left of the paragraph, and is used for all but the
133 first line in a paragraph. A positive value will cause the first line to appear to the left
134 of the subsequent lines, and a negative value will cause the first line to be indented
135 relative to the subsequent lines.
136
137 wxRichTextBuffer uses indentation to render a bulleted item. The left indent is the distance between
138 the margin and the bullet. The content of the paragraph, including the first line, starts
139 at leftMargin + leftSubIndent. So the distance between the left edge of the bullet and the
140 left of the actual paragraph is leftSubIndent.
141
142 \membersection{wxRichTextCtrl::BeginLineSpacing}\label{wxrichtextctrlbeginlinespacing}
143
144 \func{bool}{BeginLineSpacing}{\param{int }{lineSpacing}}
145
146 Begins appling line spacing. {\it spacing} is a multiple, where 10 means single-spacing,
147 15 means 1.5 spacing, and 20 means double spacing. The following constants are
148 defined for convenience:
149
150
151 {\small
152 \begin{verbatim}
153 #define wxTEXT_ATTR_LINE_SPACING_NORMAL 10
154 #define wxTEXT_ATTR_LINE_SPACING_HALF 15
155 #define wxTEXT_ATTR_LINE_SPACING_TWICE 20
156 \end{verbatim}
157 }
158
159 \membersection{wxRichTextCtrl::BeginNumberedBullet}\label{wxrichtextctrlbeginnumberedbullet}
160
161 \func{bool}{BeginNumberedBullet}{\param{int }{bulletNumber}, \param{int }{leftIndent}, \param{int }{leftSubIndent}, \param{int }{bulletStyle = wxTEXT\_ATTR\_BULLET\_STYLE\_ARABIC|wxTEXT\_ATTR\_BULLET\_STYLE\_PERIOD}}
162
163 Begins a numbered bullet. This call will be needed for each item in the list, and the
164 application should take care of incrementing the numbering.
165
166 {\it bulletNumber} is a number, usually starting with 1.
167
168 {\it leftIndent} and {\it leftSubIndent} are values in tenths of a millimetre.
169
170 {\it bulletStyle} is a bitlist of the following values:
171
172 {\small
173 \begin{verbatim}
174 #define wxTEXT_ATTR_BULLET_STYLE_NONE 0x0000
175 #define wxTEXT_ATTR_BULLET_STYLE_ARABIC 0x0001
176 #define wxTEXT_ATTR_BULLET_STYLE_LETTERS_UPPER 0x0002
177 #define wxTEXT_ATTR_BULLET_STYLE_LETTERS_LOWER 0x0004
178 #define wxTEXT_ATTR_BULLET_STYLE_ROMAN_UPPER 0x0008
179 #define wxTEXT_ATTR_BULLET_STYLE_ROMAN_LOWER 0x0010
180 #define wxTEXT_ATTR_BULLET_STYLE_SYMBOL 0x0020
181 #define wxTEXT_ATTR_BULLET_STYLE_BITMAP 0x0040
182 #define wxTEXT_ATTR_BULLET_STYLE_PARENTHESES 0x0080
183 #define wxTEXT_ATTR_BULLET_STYLE_PERIOD 0x0100
184 \end{verbatim}
185 }
186
187 wxRichTextBuffer uses indentation to render a bulleted item. The left indent is the distance between
188 the margin and the bullet. The content of the paragraph, including the first line, starts
189 at leftMargin + leftSubIndent. So the distance between the left edge of the bullet and the
190 left of the actual paragraph is leftSubIndent.
191
192 \membersection{wxRichTextCtrl::BeginParagraphSpacing}\label{wxrichtextctrlbeginparagraphspacing}
193
194 \func{bool}{BeginParagraphSpacing}{\param{int }{before}, \param{int }{after}}
195
196 Begins paragraph spacing; pass the before-paragraph and after-paragraph spacing in tenths of
197 a millimetre.
198
199 \membersection{wxRichTextCtrl::BeginParagraphStyle}\label{wxrichtextctrlbeginparagraphstyle}
200
201 \func{bool}{BeginParagraphStyle}{\param{const wxString\& }{paragraphStyle}}
202
203 Begins applying the named paragraph style.
204
205 \membersection{wxRichTextCtrl::BeginRightIndent}\label{wxrichtextctrlbeginrightindent}
206
207 \func{bool}{BeginRightIndent}{\param{int }{rightIndent}}
208
209 Begins a right indent, specified in tenths of a millimetre.
210
211 \membersection{wxRichTextCtrl::BeginStyle}\label{wxrichtextctrlbeginstyle}
212
213 \func{bool}{BeginStyle}{\param{const wxTextAttrEx\& }{style}}
214
215 Begins applying a style.
216
217 \membersection{wxRichTextCtrl::BeginSuppressUndo}\label{wxrichtextctrlbeginsuppressundo}
218
219 \func{bool}{BeginSuppressUndo}{\void}
220
221 Starts suppressing undo history for commands.
222
223 \membersection{wxRichTextCtrl::BeginSymbolBullet}\label{wxrichtextctrlbeginsymbolbullet}
224
225 \func{bool}{BeginSymbolBullet}{\param{wxChar }{symbol}, \param{int }{leftIndent}, \param{int }{leftSubIndent}, \param{int }{bulletStyle = wxTEXT\_ATTR\_BULLET\_STYLE\_SYMBOL}}
226
227 Begins applying a symbol bullet, using a character from the current font. See \helpref{BeginNumberedBullet}{wxrichtextctrlbeginnumberedbullet} for
228 an explanation of how indentation is used to render the bulleted paragraph.
229
230 \membersection{wxRichTextCtrl::BeginTextColour}\label{wxrichtextctrlbegintextcolour}
231
232 \func{bool}{BeginTextColour}{\param{const wxColour\& }{colour}}
233
234 Begins using this colour.
235
236 \membersection{wxRichTextCtrl::BeginUnderline}\label{wxrichtextctrlbeginunderline}
237
238 \func{bool}{BeginUnderline}{\void}
239
240 Begins using underlining.
241
242 \membersection{wxRichTextCtrl::CanCopy}\label{wxrichtextctrlcancopy}
243
244 \constfunc{bool}{CanCopy}{\void}
245
246 Returns \true if selected content can be copied to the clipboard.
247
248 \membersection{wxRichTextCtrl::CanCut}\label{wxrichtextctrlcancut}
249
250 \constfunc{bool}{CanCut}{\void}
251
252 Returns \true if selected content can be copied to the clipboard and deleted.
253
254 \membersection{wxRichTextCtrl::CanDeleteSelection}\label{wxrichtextctrlcandeleteselection}
255
256 \constfunc{bool}{CanDeleteSelection}{\void}
257
258 Returns \true if selected content can be deleted.
259
260 \membersection{wxRichTextCtrl::CanPaste}\label{wxrichtextctrlcanpaste}
261
262 \constfunc{bool}{CanPaste}{\void}
263
264 Returns \true if the clipboard content can be pasted to the buffer.
265
266 \membersection{wxRichTextCtrl::CanRedo}\label{wxrichtextctrlcanredo}
267
268 \constfunc{bool}{CanRedo}{\void}
269
270 Returns \true if there is a command in the command history that can be redone.
271
272 \membersection{wxRichTextCtrl::CanUndo}\label{wxrichtextctrlcanundo}
273
274 \constfunc{bool}{CanUndo}{\void}
275
276 Returns \true if there is a command in the command history that can be undone.
277
278 \membersection{wxRichTextCtrl::Clear}\label{wxrichtextctrlclear}
279
280 \func{void}{Clear}{\void}
281
282 Clears the buffer content, leaving a single empty paragraph. Cannot be undone.
283
284 \membersection{wxRichTextCtrl::Command}\label{wxrichtextctrlcommand}
285
286 \func{void}{Command}{\param{wxCommandEvent\& }{event}}
287
288 Sends the event to the control.
289
290 \membersection{wxRichTextCtrl::Copy}\label{wxrichtextctrlcopy}
291
292 \func{void}{Copy}{\void}
293
294 Copies the selected content (if any) to the clipboard.
295
296 \membersection{wxRichTextCtrl::Create}\label{wxrichtextctrlcreate}
297
298 \func{bool}{Create}{\param{wxWindow* }{parent}, \param{wxWindowID }{id = wxID\_ANY}, \param{const wxString\& }{value = wxEmptyString}, \param{const wxPoint\& }{pos = wxDefaultPosition}, \param{const wxSize\& }{size = wxDefaultSize}, \param{long }{style = wxRE\_MULTILINE}}
299
300 Creates the underlying window.
301
302 \membersection{wxRichTextCtrl::Cut}\label{wxrichtextctrlcut}
303
304 \func{void}{Cut}{\void}
305
306 Copies the selected content (if any) to the clipboard and deletes the selection.
307 This is undoable.
308
309 \membersection{wxRichTextCtrl::DeleteSelectedContent}\label{wxrichtextctrldeleteselectedcontent}
310
311 \func{bool}{DeleteSelectedContent}{\param{long* }{newPos = NULL}}
312
313 Deletes content if there is a selection, e.g. when pressing a key.
314 Returns the new caret position in {\it newPos}, or leaves it if there
315 was no action. This is undoable.
316
317 \membersection{wxRichTextCtrl::DeleteSelection}\label{wxrichtextctrldeleteselection}
318
319 \func{void}{DeleteSelection}{\void}
320
321 Deletes the content in the selection, if any. This is undoable.
322
323 \membersection{wxRichTextCtrl::DiscardEdits}\label{wxrichtextctrldiscardedits}
324
325 \func{void}{DiscardEdits}{\void}
326
327 Sets the buffer's modified status to \false, and clears the buffer's command history.
328
329 \membersection{wxRichTextCtrl::DoGetBestSize}\label{wxrichtextctrldogetbestsize}
330
331 \constfunc{wxSize}{DoGetBestSize}{\void}
332
333 Currently this simply returns {\tt wxSize(10, 10)}.
334
335 \membersection{wxRichTextCtrl::EndAlignment}\label{wxrichtextctrlendalignment}
336
337 \func{bool}{EndAlignment}{\void}
338
339 Ends alignment.
340
341 \membersection{wxRichTextCtrl::EndAllStyles}\label{wxrichtextctrlendallstyles}
342
343 \func{bool}{EndAllStyles}{\void}
344
345 Ends application of all styles in the current style stack.
346
347 \membersection{wxRichTextCtrl::EndBatchUndo}\label{wxrichtextctrlendbatchundo}
348
349 \func{bool}{EndBatchUndo}{\void}
350
351 Ends batching undo command history.
352
353 \membersection{wxRichTextCtrl::EndBold}\label{wxrichtextctrlendbold}
354
355 \func{bool}{EndBold}{\void}
356
357 Ends using bold.
358
359 \membersection{wxRichTextCtrl::EndCharacterStyle}\label{wxrichtextctrlendcharacterstyle}
360
361 \func{bool}{EndCharacterStyle}{\void}
362
363 Ends application of a named character style.
364
365 \membersection{wxRichTextCtrl::EndFont}\label{wxrichtextctrlendfont}
366
367 \func{bool}{EndFont}{\void}
368
369 Ends using a font.
370
371 \membersection{wxRichTextCtrl::EndFontSize}\label{wxrichtextctrlendfontsize}
372
373 \func{bool}{EndFontSize}{\void}
374
375 Ends using a point size.
376
377 \membersection{wxRichTextCtrl::EndItalic}\label{wxrichtextctrlenditalic}
378
379 \func{bool}{EndItalic}{\void}
380
381 Ends using italic.
382
383 \membersection{wxRichTextCtrl::EndLeftIndent}\label{wxrichtextctrlendleftindent}
384
385 \func{bool}{EndLeftIndent}{\void}
386
387 Ends left indent.
388
389 \membersection{wxRichTextCtrl::EndLineSpacing}\label{wxrichtextctrlendlinespacing}
390
391 \func{bool}{EndLineSpacing}{\void}
392
393 Ends line spacing.
394
395 \membersection{wxRichTextCtrl::EndNumberedBullet}\label{wxrichtextctrlendnumberedbullet}
396
397 \func{bool}{EndNumberedBullet}{\void}
398
399 Ends application of a numbered bullet.
400
401 \membersection{wxRichTextCtrl::EndParagraphSpacing}\label{wxrichtextctrlendparagraphspacing}
402
403 \func{bool}{EndParagraphSpacing}{\void}
404
405 Ends paragraph spacing.
406
407 \membersection{wxRichTextCtrl::EndParagraphStyle}\label{wxrichtextctrlendparagraphstyle}
408
409 \func{bool}{EndParagraphStyle}{\void}
410
411 Ends application of a named character style.
412
413 \membersection{wxRichTextCtrl::EndRightIndent}\label{wxrichtextctrlendrightindent}
414
415 \func{bool}{EndRightIndent}{\void}
416
417 Ends right indent.
418
419 \membersection{wxRichTextCtrl::EndStyle}\label{wxrichtextctrlendstyle}
420
421 \func{bool}{EndStyle}{\void}
422
423 Ends the current style.
424
425 \membersection{wxRichTextCtrl::EndSuppressUndo}\label{wxrichtextctrlendsuppressundo}
426
427 \func{bool}{EndSuppressUndo}{\void}
428
429 Ends suppressing undo command history.
430
431 \membersection{wxRichTextCtrl::EndSymbolBullet}\label{wxrichtextctrlendsymbolbullet}
432
433 \func{bool}{EndSymbolBullet}{\void}
434
435 Ends applying a symbol bullet.
436
437 \membersection{wxRichTextCtrl::EndTextColour}\label{wxrichtextctrlendtextcolour}
438
439 \func{bool}{EndTextColour}{\void}
440
441 Ends applying a text colour.
442
443 \membersection{wxRichTextCtrl::EndUnderline}\label{wxrichtextctrlendunderline}
444
445 \func{bool}{EndUnderline}{\void}
446
447 End applying underlining.
448
449 \membersection{wxRichTextCtrl::ExtendSelection}\label{wxrichtextctrlextendselection}
450
451 \func{bool}{ExtendSelection}{\param{long }{oldPosition}, \param{long }{newPosition}, \param{int }{flags}}
452
453 Helper function for extending the selection, returning \true if the selection was
454 changed. Selections are in caret positions.
455
456 \membersection{wxRichTextCtrl::FindNextWordPosition}\label{wxrichtextctrlfindnextwordposition}
457
458 \constfunc{long}{FindNextWordPosition}{\param{int }{direction = 1}}
459
460 Helper function for finding the caret position for the next word. Direction
461 is 1 (forward) or -1 (backwards).
462
463 \membersection{wxRichTextCtrl::Freeze}\label{wxrichtextctrlfreeze}
464
465 \func{void}{Freeze}{\void}
466
467 Call this function to prevent refresh and allow fast updates, and then \helpref{Thaw}{wxrichtextctrlthaw} to
468 refresh the control.
469
470 \membersection{wxRichTextCtrl::GetBasicStyle}\label{wxrichtextctrlgetbasicstyle}
471
472 \constfunc{const wxTextAttrEx\&}{GetBasicStyle}{\void}
473
474 Gets the basic (overall) style. This is the style of the whole
475 buffer before further styles are applied, unlike the default style, which
476 only affects the style currently being applied (for example, setting the default
477 style to bold will cause subsequently inserted text to be bold).
478
479 \membersection{wxRichTextCtrl::GetBuffer}\label{wxrichtextctrlgetbuffer}
480
481 \constfunc{const wxRichTextBuffer\&}{GetBuffer}{\void}
482
483 \func{wxRichTextBuffer\&}{GetBuffer}{\void}
484
485 Returns the buffer associated with the control.
486
487 \membersection{wxRichTextCtrl::GetCaretPosition}\label{wxrichtextctrlgetcaretposition}
488
489 \constfunc{long}{GetCaretPosition}{\void}
490
491 Returns the current caret position.
492
493 \membersection{wxRichTextCtrl::GetCaretPositionForIndex}\label{wxrichtextctrlgetcaretpositionforindex}
494
495 \func{bool}{GetCaretPositionForIndex}{\param{long }{position}, \param{wxRect\& }{rect}}
496
497 Returns the caret height and position for the given character position
498
499 \membersection{wxRichTextCtrl::GetCommandProcessor}\label{wxrichtextctrlgetcommandprocessor}
500
501 \constfunc{wxCommandProcessor*}{GetCommandProcessor}{\void}
502
503 Gets the command processor associated with the control's buffer.
504
505 \membersection{wxRichTextCtrl::GetDefaultStyleEx}\label{wxrichtextctrlgetdefaultstyleex}
506
507 \constfunc{const wxTextAttrEx\&}{GetDefaultStyleEx}{\void}
508
509 Returns the current default style, which can be used to change how subsequently inserted
510 text is displayed. When wxTextAttrEx is merged with wxTextAttr, this function
511 will become GetDefaultStyle.
512
513 \membersection{wxRichTextCtrl::GetDelayedLayoutThreshold}\label{wxrichtextctrlgetdelayedlayoutthreshold}
514
515 \constfunc{long}{GetDelayedLayoutThreshold}{\void}
516
517 Gets the size of the buffer beyond which layout is delayed during resizing.
518 This optimizes sizing for large buffers. The default is 20000.
519
520 \membersection{wxRichTextCtrl::GetFilename}\label{wxrichtextctrlgetfilename}
521
522 \constfunc{wxString}{GetFilename}{\void}
523
524 Gets the current filename associated with the control.
525
526 \membersection{wxRichTextCtrl::GetFirstVisiblePosition}\label{wxrichtextctrlgetfirstvisibleposition}
527
528 \constfunc{long}{GetFirstVisiblePosition}{\void}
529
530 Returns the first visible position in the current view.
531
532 \membersection{wxRichTextCtrl::GetInsertionPoint}\label{wxrichtextctrlgetinsertionpoint}
533
534 \constfunc{long}{GetInsertionPoint}{\void}
535
536 Returns the current insertion point.
537
538 \membersection{wxRichTextCtrl::GetLastPosition}\label{wxrichtextctrlgetlastposition}
539
540 \constfunc{wxTextPos}{GetLastPosition}{\void}
541
542 Returns the last position in the buffer.
543
544 \membersection{wxRichTextCtrl::GetLineLength}\label{wxrichtextctrlgetlinelength}
545
546 \constfunc{int}{GetLineLength}{\param{long }{lineNo}}
547
548 Returns the length of the specified line in characters.
549
550 \membersection{wxRichTextCtrl::GetLineText}\label{wxrichtextctrlgetlinetext}
551
552 \constfunc{wxString}{GetLineText}{\param{long }{lineNo}}
553
554 Returns the text for the given line.
555
556 \membersection{wxRichTextCtrl::GetLogicalPoint}\label{wxrichtextctrlgetlogicalpoint}
557
558 \constfunc{wxPoint}{GetLogicalPoint}{\param{const wxPoint\& }{ptPhysical}}
559
560 Transforms physical window position to logical (unscrolled) position.
561
562 \membersection{wxRichTextCtrl::GetNumberOfLines}\label{wxrichtextctrlgetnumberoflines}
563
564 \constfunc{int}{GetNumberOfLines}{\void}
565
566 Returns the number of lines in the buffer.
567
568 \membersection{wxRichTextCtrl::GetPhysicalPoint}\label{wxrichtextctrlgetphysicalpoint}
569
570 \constfunc{wxPoint}{GetPhysicalPoint}{\param{const wxPoint\& }{ptLogical}}
571
572 Transforms logical (unscrolled) position to physical window position.
573
574 \membersection{wxRichTextCtrl::GetRange}\label{wxrichtextctrlgetrange}
575
576 \constfunc{wxString}{GetRange}{\param{long }{from}, \param{long }{to}}
577
578 Gets the text for the given range.
579
580 \membersection{wxRichTextCtrl::GetSelection}\label{wxrichtextctrlgetselection}
581
582 \constfunc{void}{GetSelection}{\param{long* }{from}, \param{long* }{to}}
583
584 Returns the range of the current selection. If the return values {\it from} and {\it to} are the same, there is no selection.
585
586 \membersection{wxRichTextCtrl::GetSelectionRange}\label{wxrichtextctrlgetselectionrange}
587
588 \constfunc{const wxRichTextRange\&}{GetSelectionRange}{\void}
589
590 Returns the selection range in character positions. -1, -1 means no selection.
591
592 \membersection{wxRichTextCtrl::GetStringSelection}\label{wxrichtextctrlgetstringselection}
593
594 \constfunc{wxString}{GetStringSelection}{\void}
595
596 Returns the text within the current selection range, if any.
597
598 \membersection{wxRichTextCtrl::GetStyle}\label{wxrichtextctrlgetstyle}
599
600 \constfunc{bool}{GetStyle}{\param{long }{position}, \param{wxRichTextAttr\& }{style}}
601
602 \constfunc{bool}{GetStyle}{\param{long }{position}, \param{wxTextAttrEx\& }{style}}
603
604 Gets the attributes at the given position. The wxRichTextAttr version is generally more efficient
605 because it does not use wxFont objects.
606
607 \membersection{wxRichTextCtrl::GetStyleSheet}\label{wxrichtextctrlgetstylesheet}
608
609 \constfunc{wxRichTextStyleSheet*}{GetStyleSheet}{\void}
610
611 Returns the style sheet associated with the control, if any. A style sheet allows named
612 character and paragraph styles to be applied.
613
614 \membersection{wxRichTextCtrl::GetValue}\label{wxrichtextctrlgetvalue}
615
616 \constfunc{wxString}{GetValue}{\void}
617
618 Returns the content of the entire control as a string.
619
620 \membersection{wxRichTextCtrl::GetVisibleLineForCaretPosition}\label{wxrichtextctrlgetvisiblelineforcaretposition}
621
622 \constfunc{wxRichTextLine*}{GetVisibleLineForCaretPosition}{\param{long }{caretPosition}}
623
624 Internal helper function returning the line for the visible caret position. If the caret is
625 shown at the very end of the line, it means the next character is actually
626 on the following line. So this function gets the line we're expecting to find
627 if this is the case.
628
629 \membersection{wxRichTextCtrl::HasCharacterAttributes}\label{wxrichtextctrlhascharacterattributes}
630
631 \constfunc{bool}{HasCharacterAttributes}{\param{const wxRichTextRange\& }{range}, \param{const wxTextAttrEx\& }{style}}
632
633 \constfunc{bool}{HasCharacterAttributes}{\param{const wxRichTextRange\& }{range}, \param{const wxRichTextAttr\& }{style}}
634
635 Test if this whole range has character attributes of the specified kind. If any
636 of the attributes are different within the range, the test fails. You
637 can use this to implement, for example, bold button updating. {\it style} must have
638 flags indicating which attributes are of interest.
639
640 \membersection{wxRichTextCtrl::HasParagraphAttributes}\label{wxrichtextctrlhasparagraphattributes}
641
642 \constfunc{bool}{HasParagraphAttributes}{\param{const wxRichTextRange\& }{range}, \param{const wxTextAttrEx\& }{style}}
643
644 \constfunc{bool}{HasParagraphAttributes}{\param{const wxRichTextRange\& }{range}, \param{const wxRichTextAttr\& }{style}}
645
646 Test if this whole range has paragraph attributes of the specified kind. If any
647 of the attributes are different within the range, the test fails. You
648 can use this to implement, for example, centering button updating. {\it style} must have
649 flags indicating which attributes are of interest.
650
651 \membersection{wxRichTextCtrl::HasSelection}\label{wxrichtextctrlhasselection}
652
653 \constfunc{bool}{HasSelection}{\void}
654
655 Returns \true if there is a selection.
656
657 \membersection{wxRichTextCtrl::HitTest}\label{wxrichtextctrlhittest}
658
659 \constfunc{wxTextCtrlHitTestResult}{HitTest}{\param{const wxPoint\& }{pt}, \param{long* }{pos}}
660
661 \constfunc{wxTextCtrlHitTestResult}{HitTest}{\param{const wxPoint\& }{pt}, \param{wxTextCoord* }{col}, \param{wxTextCoord* }{row}}
662
663 Finds the character at the given position in pixels.
664
665 {\it pt} is in device coords (not adjusted for the client area origin nor for scrolling).
666
667 \membersection{wxRichTextCtrl::Init}\label{wxrichtextctrlinit}
668
669 \func{void}{Init}{\void}
670
671 Initialises the members of the control.
672
673 \membersection{wxRichTextCtrl::InitCommandEvent}\label{wxrichtextctrlinitcommandevent}
674
675 \constfunc{void}{InitCommandEvent}{\param{wxCommandEvent\& }{event}}
676
677 Initialises the command event.
678
679 \membersection{wxRichTextCtrl::IsEditable}\label{wxrichtextctrliseditable}
680
681 \constfunc{bool}{IsEditable}{\void}
682
683 Returns \true if the control is editable.
684
685 \membersection{wxRichTextCtrl::IsFrozen}\label{wxrichtextctrlisfrozen}
686
687 \constfunc{bool}{IsFrozen}{\void}
688
689 Returns \true if Freeze has been called without a Thaw.
690
691 \membersection{wxRichTextCtrl::IsModified}\label{wxrichtextctrlismodified}
692
693 \constfunc{bool}{IsModified}{\void}
694
695 Returns \true if the buffer has been modified.
696
697 \membersection{wxRichTextCtrl::IsMultiLine}\label{wxrichtextctrlismultiline}
698
699 \constfunc{bool}{IsMultiLine}{\void}
700
701 Returns \true if the control is multiline.
702
703 \membersection{wxRichTextCtrl::IsPositionVisible}\label{wxrichtextctrlispositionvisible}
704
705 \constfunc{bool}{IsPositionVisible}{\param{long }{pos}}
706
707 Returns \true if the given position is visible on the screen.
708
709 \membersection{wxRichTextCtrl::IsSelectionAligned}\label{wxrichtextctrlisselectionaligned}
710
711 \constfunc{bool}{IsSelectionAligned}{\param{wxTextAttrAlignment }{alignment}}
712
713 Returns \true if all of the selection is aligned according to the specified flag.
714
715 \membersection{wxRichTextCtrl::IsSelectionBold}\label{wxrichtextctrlisselectionbold}
716
717 \constfunc{bool}{IsSelectionBold}{\void}
718
719 Returns \true if all of the selection is bold.
720
721 \membersection{wxRichTextCtrl::IsSelectionItalics}\label{wxrichtextctrlisselectionitalics}
722
723 \constfunc{bool}{IsSelectionItalics}{\void}
724
725 Returns \true if all of the selection is italic.
726
727 \membersection{wxRichTextCtrl::IsSelectionUnderlined}\label{wxrichtextctrlisselectionunderlined}
728
729 \constfunc{bool}{IsSelectionUnderlined}{\void}
730
731 Returns \true if all of the selection is underlined.
732
733 \membersection{wxRichTextCtrl::IsSingleLine}\label{wxrichtextctrlissingleline}
734
735 \constfunc{bool}{IsSingleLine}{\void}
736
737 Returns \true if the control is single-line. Currently wxRichTextCtrl does not
738 support single-line editing.
739
740 \membersection{wxRichTextCtrl::KeyboardNavigate}\label{wxrichtextctrlkeyboardnavigate}
741
742 \func{bool}{KeyboardNavigate}{\param{int }{keyCode}, \param{int }{flags}}
743
744 Helper function implementing keyboard navigation.
745
746 \membersection{wxRichTextCtrl::LayoutContent}\label{wxrichtextctrllayoutcontent}
747
748 \func{bool}{LayoutContent}{\param{bool }{onlyVisibleRect = false}}
749
750 Lays out the buffer, which must be done before certain operations, such as
751 setting the caret position. This function should not normally be required by the
752 application.
753
754 \membersection{wxRichTextCtrl::LoadFile}\label{wxrichtextctrlloadfile}
755
756 \func{bool}{LoadFile}{\param{const wxString\& }{file}, \param{int }{type = wxRICHTEXT\_TYPE\_ANY}}
757
758 Loads content into the control's buffer using the given type. If the specified type
759 is wxRICHTEXT\_TYPE\_ANY, the type is deduced from the filename extension.
760
761 This function looks for a suitable \helpref{wxRichTextFileHandler}{wxrichtextfilehandler} object.
762
763 \membersection{wxRichTextCtrl::MarkDirty}\label{wxrichtextctrlmarkdirty}
764
765 \func{void}{MarkDirty}{\void}
766
767 Marks the buffer as modified.
768
769 \membersection{wxRichTextCtrl::MoveCaret}\label{wxrichtextctrlmovecaret}
770
771 \func{bool}{MoveCaret}{\param{long }{pos}, \param{bool }{showAtLineStart = false}}
772
773 Move the caret to the given character position.
774
775 \membersection{wxRichTextCtrl::MoveCaretBack}\label{wxrichtextctrlmovecaretback}
776
777 \func{void}{MoveCaretBack}{\param{long }{oldPosition}}
778
779 Move the caret one visual step forward: this may mean setting a flag
780 and keeping the same position if we're going from the end of one line
781 to the start of the next, which may be the exact same caret position.
782
783 \membersection{wxRichTextCtrl::MoveCaretForward}\label{wxrichtextctrlmovecaretforward}
784
785 \func{void}{MoveCaretForward}{\param{long }{oldPosition}}
786
787 Move the caret one visual step forward: this may mean setting a flag
788 and keeping the same position if we're going from the end of one line
789 to the start of the next, which may be the exact same caret position.
790
791 \membersection{wxRichTextCtrl::MoveDown}\label{wxrichtextctrlmovedown}
792
793 \func{bool}{MoveDown}{\param{int }{noLines = 1}, \param{int }{flags = 0}}
794
795 Moves the caret down.
796
797 \membersection{wxRichTextCtrl::MoveEnd}\label{wxrichtextctrlmoveend}
798
799 \func{bool}{MoveEnd}{\param{int }{flags = 0}}
800
801 Moves to the end of the buffer.
802
803 \membersection{wxRichTextCtrl::MoveHome}\label{wxrichtextctrlmovehome}
804
805 \func{bool}{MoveHome}{\param{int }{flags = 0}}
806
807 Moves to the start of the buffer.
808
809 \membersection{wxRichTextCtrl::MoveLeft}\label{wxrichtextctrlmoveleft}
810
811 \func{bool}{MoveLeft}{\param{int }{noPositions = 1}, \param{int }{flags = 0}}
812
813 Moves left.
814
815 \membersection{wxRichTextCtrl::MoveRight}\label{wxrichtextctrlmoveright}
816
817 \func{bool}{MoveRight}{\param{int }{noPositions = 1}, \param{int }{flags = 0}}
818
819 Moves right.
820
821 \membersection{wxRichTextCtrl::MoveToLineEnd}\label{wxrichtextctrlmovetolineend}
822
823 \func{bool}{MoveToLineEnd}{\param{int }{flags = 0}}
824
825 Moves to the end of the line.
826
827 \membersection{wxRichTextCtrl::MoveToLineStart}\label{wxrichtextctrlmovetolinestart}
828
829 \func{bool}{MoveToLineStart}{\param{int }{flags = 0}}
830
831 Moves to the start of the line.
832
833 \membersection{wxRichTextCtrl::MoveToParagraphEnd}\label{wxrichtextctrlmovetoparagraphend}
834
835 \func{bool}{MoveToParagraphEnd}{\param{int }{flags = 0}}
836
837 Moves to the end of the paragraph.
838
839 \membersection{wxRichTextCtrl::MoveToParagraphStart}\label{wxrichtextctrlmovetoparagraphstart}
840
841 \func{bool}{MoveToParagraphStart}{\param{int }{flags = 0}}
842
843 Moves to the start of the paragraph.
844
845 \membersection{wxRichTextCtrl::MoveUp}\label{wxrichtextctrlmoveup}
846
847 \func{bool}{MoveUp}{\param{int }{noLines = 1}, \param{int }{flags = 0}}
848
849 Moves up.
850
851 \membersection{wxRichTextCtrl::Newline}\label{wxrichtextctrlnewline}
852
853 \func{bool}{Newline}{\void}
854
855 Insert a newline (actually paragraph) at the current insertion point.
856
857 \membersection{wxRichTextCtrl::OnClear}\label{wxrichtextctrlonclear}
858
859 \func{void}{OnClear}{\param{wxCommandEvent\& }{event}}
860
861 Standard handler for the wxID\_CLEAR command.
862
863 \membersection{wxRichTextCtrl::OnContextMenu}\label{wxrichtextctrloncontextmenu}
864
865 \func{void}{OnContextMenu}{\param{wxContextMenuEvent\& }{event}}
866
867 Shows a standard context menu with undo, redo, cut, copy, paste, clear, and select all commands.
868
869 \membersection{wxRichTextCtrl::OnCopy}\label{wxrichtextctrloncopy}
870
871 \func{void}{OnCopy}{\param{wxCommandEvent\& }{event}}
872
873 Standard handler for the wxID\_COPY command.
874
875 \membersection{wxRichTextCtrl::OnCut}\label{wxrichtextctrloncut}
876
877 \func{void}{OnCut}{\param{wxCommandEvent\& }{event}}
878
879 Standard handler for the wxID\_CUT command.
880
881 \membersection{wxRichTextCtrl::OnDropFiles}\label{wxrichtextctrlondropfiles}
882
883 \func{void}{OnDropFiles}{\param{wxDropFilesEvent\& }{event}}
884
885 Loads the first dropped file.
886
887 \membersection{wxRichTextCtrl::OnPaste}\label{wxrichtextctrlonpaste}
888
889 \func{void}{OnPaste}{\param{wxCommandEvent\& }{event}}
890
891 Standard handler for the wxID\_PASTE command.
892
893 \membersection{wxRichTextCtrl::OnRedo}\label{wxrichtextctrlonredo}
894
895 \func{void}{OnRedo}{\param{wxCommandEvent\& }{event}}
896
897 Standard handler for the wxID\_REDO command.
898
899 \membersection{wxRichTextCtrl::OnSelectAll}\label{wxrichtextctrlonselectall}
900
901 \func{void}{OnSelectAll}{\param{wxCommandEvent\& }{event}}
902
903 Standard handler for the wxID\_SELECTALL command.
904
905 \membersection{wxRichTextCtrl::OnUndo}\label{wxrichtextctrlonundo}
906
907 \func{void}{OnUndo}{\param{wxCommandEvent\& }{event}}
908
909 Standard handler for the wxID\_PASTE command.
910
911 \membersection{wxRichTextCtrl::OnUpdateClear}\label{wxrichtextctrlonupdateclear}
912
913 \func{void}{OnUpdateClear}{\param{wxUpdateUIEvent\& }{event}}
914
915 Standard update handler for the wxID\_CLEAR command.
916
917 \membersection{wxRichTextCtrl::OnUpdateCopy}\label{wxrichtextctrlonupdatecopy}
918
919 \func{void}{OnUpdateCopy}{\param{wxUpdateUIEvent\& }{event}}
920
921 Standard update handler for the wxID\_COPY command.
922
923 \membersection{wxRichTextCtrl::OnUpdateCut}\label{wxrichtextctrlonupdatecut}
924
925 \func{void}{OnUpdateCut}{\param{wxUpdateUIEvent\& }{event}}
926
927 Standard update handler for the wxID\_CUT command.
928
929 \membersection{wxRichTextCtrl::OnUpdatePaste}\label{wxrichtextctrlonupdatepaste}
930
931 \func{void}{OnUpdatePaste}{\param{wxUpdateUIEvent\& }{event}}
932
933 Standard update handler for the wxID\_PASTE command.
934
935 \membersection{wxRichTextCtrl::OnUpdateRedo}\label{wxrichtextctrlonupdateredo}
936
937 \func{void}{OnUpdateRedo}{\param{wxUpdateUIEvent\& }{event}}
938
939 Standard update handler for the wxID\_REDO command.
940
941 \membersection{wxRichTextCtrl::OnUpdateSelectAll}\label{wxrichtextctrlonupdateselectall}
942
943 \func{void}{OnUpdateSelectAll}{\param{wxUpdateUIEvent\& }{event}}
944
945 Standard update handler for the wxID\_SELECTALL command.
946
947 \membersection{wxRichTextCtrl::OnUpdateUndo}\label{wxrichtextctrlonupdateundo}
948
949 \func{void}{OnUpdateUndo}{\param{wxUpdateUIEvent\& }{event}}
950
951 Standard update handler for the wxID\_UNDO command.
952
953 \membersection{wxRichTextCtrl::PageDown}\label{wxrichtextctrlpagedown}
954
955 \func{bool}{PageDown}{\param{int }{noPages = 1}, \param{int }{flags = 0}}
956
957 Moves one or more pages down.
958
959 \membersection{wxRichTextCtrl::PageUp}\label{wxrichtextctrlpageup}
960
961 \func{bool}{PageUp}{\param{int }{noPages = 1}, \param{int }{flags = 0}}
962
963 Moves one or more pages up.
964
965 \membersection{wxRichTextCtrl::PaintBackground}\label{wxrichtextctrlpaintbackground}
966
967 \func{void}{PaintBackground}{\param{wxDC\& }{dc}}
968
969 Paints the background.
970
971 \membersection{wxRichTextCtrl::Paste}\label{wxrichtextctrlpaste}
972
973 \func{void}{Paste}{\void}
974
975 Pastes content from the clipboard to the buffer.
976
977 \membersection{wxRichTextCtrl::PositionCaret}\label{wxrichtextctrlpositioncaret}
978
979 \func{void}{PositionCaret}{\void}
980
981 Internal function to position the visible caret according to the current caret position.
982
983 \membersection{wxRichTextCtrl::PositionToXY}\label{wxrichtextctrlpositiontoxy}
984
985 \constfunc{bool}{PositionToXY}{\param{long }{pos}, \param{long* }{x}, \param{long* }{y}}
986
987 Converts a text position to zero-based column and line numbers.
988
989 \membersection{wxRichTextCtrl::Redo}\label{wxrichtextctrlredo}
990
991 \func{void}{Redo}{\void}
992
993 Redoes the current command.
994
995 \membersection{wxRichTextCtrl::Remove}\label{wxrichtextctrlremove}
996
997 \func{void}{Remove}{\param{long }{from}, \param{long }{to}}
998
999 Removes the content in the specified range.
1000
1001 \membersection{wxRichTextCtrl::Replace}\label{wxrichtextctrlreplace}
1002
1003 \func{void}{Replace}{\param{long }{from}, \param{long }{to}, \param{const wxString\& }{value}}
1004
1005 Replaces the content in the specified range with the string specified by {\it value}.
1006
1007 \membersection{wxRichTextCtrl::SaveFile}\label{wxrichtextctrlsavefile}
1008
1009 \func{bool}{SaveFile}{\param{const wxString\& }{file = wxEmptyString}, \param{int }{type = wxRICHTEXT\_TYPE\_ANY}}
1010
1011 Saves the buffer content using the given type. If the specified type
1012 is wxRICHTEXT\_TYPE\_ANY, the type is deduced from the filename extension.
1013
1014 This function looks for a suitable \helpref{wxRichTextFileHandler}{wxrichtextfilehandler} object.
1015
1016 \membersection{wxRichTextCtrl::ScrollIntoView}\label{wxrichtextctrlscrollintoview}
1017
1018 \func{bool}{ScrollIntoView}{\param{long }{position}, \param{int }{keyCode}}
1019
1020 Scrolls {\it position} into view. This function takes a caret position.
1021
1022 \membersection{wxRichTextCtrl::SelectAll}\label{wxrichtextctrlselectall}
1023
1024 \func{void}{SelectAll}{\void}
1025
1026 Selects all the text in the buffer.
1027
1028 \membersection{wxRichTextCtrl::SelectNone}\label{wxrichtextctrlselectnone}
1029
1030 \func{void}{SelectNone}{\void}
1031
1032 Cancels any selection.
1033
1034 \membersection{wxRichTextCtrl::SetBasicStyle}\label{wxrichtextctrlsetbasicstyle}
1035
1036 \func{void}{SetBasicStyle}{\param{const wxRichTextAttr\& }{style}}
1037
1038 \func{void}{SetBasicStyle}{\param{const wxTextAttrEx\& }{style}}
1039
1040 Sets the basic (overall) style. This is the style of the whole
1041 buffer before further styles are applied, unlike the default style, which
1042 only affects the style currently being applied (for example, setting the default
1043 style to bold will cause subsequently inserted text to be bold).
1044
1045 \membersection{wxRichTextCtrl::SetCaretPosition}\label{wxrichtextctrlsetcaretposition}
1046
1047 \func{void}{SetCaretPosition}{\param{long }{position}, \param{bool }{showAtLineStart = false}}
1048
1049 The caret position is the character position just before the caret.
1050 A value of -1 means the caret is at the start of the buffer.
1051
1052 \membersection{wxRichTextCtrl::SetDefaultStyle}\label{wxrichtextctrlsetdefaultstyle}
1053
1054 \func{bool}{SetDefaultStyle}{\param{const wxTextAttrEx\& }{style}}
1055
1056 Sets the current default style, which can be used to change how subsequently inserted
1057 text is displayed.
1058
1059 \membersection{wxRichTextCtrl::SetDefaultStyleToCursorStyle}\label{wxrichtextctrlsetdefaultstyletocursorstyle}
1060
1061 \func{bool}{SetDefaultStyleToCursorStyle}{\void}
1062
1063 Sets the default style to the style under the cursor.
1064
1065 \membersection{wxRichTextCtrl::SetDelayedLayoutThreshold}\label{wxrichtextctrlsetdelayedlayoutthreshold}
1066
1067 \func{void}{SetDelayedLayoutThreshold}{\param{long }{threshold}}
1068
1069 Sets the size of the buffer beyond which layout is delayed during resizing.
1070 This optimizes sizing for large buffers. The default is 20000.
1071
1072 \membersection{wxRichTextCtrl::SetEditable}\label{wxrichtextctrlseteditable}
1073
1074 \func{void}{SetEditable}{\param{bool }{editable}}
1075
1076 Makes the control editable, or not.
1077
1078 \membersection{wxRichTextCtrl::SetFilename}\label{wxrichtextctrlsetfilename}
1079
1080 \func{void}{SetFilename}{\param{const wxString\& }{filename}}
1081
1082 Sets the current filename.
1083
1084 \membersection{wxRichTextCtrl::SetFont}\label{wxrichtextctrlsetfont}
1085
1086 \func{bool}{SetFont}{\param{const wxFont\& }{font}}
1087
1088 Sets the font, and also the basic and default attributes (see \helpref{SetDefaultStyle}{wxrichtextctrlsetdefaultstyle}).
1089
1090 \membersection{wxRichTextCtrl::SetInsertionPoint}\label{wxrichtextctrlsetinsertionpoint}
1091
1092 \func{void}{SetInsertionPoint}{\param{long }{pos}}
1093
1094 Sets the insertion point.
1095
1096 \membersection{wxRichTextCtrl::SetInsertionPointEnd}\label{wxrichtextctrlsetinsertionpointend}
1097
1098 \func{void}{SetInsertionPointEnd}{\void}
1099
1100 Sets the insertion point to the end of the text control.
1101
1102 \membersection{wxRichTextCtrl::SetSelection}\label{wxrichtextctrlsetselection}
1103
1104 \func{void}{SetSelection}{\param{long }{from}, \param{long }{to}}
1105
1106 Sets the selection to the given range.
1107
1108 \membersection{wxRichTextCtrl::SetSelectionRange}\label{wxrichtextctrlsetselectionrange}
1109
1110 \func{void}{SetSelectionRange}{\param{const wxRichTextRange\& }{range}}
1111
1112 Sets the selection to the given range.
1113
1114 \membersection{wxRichTextCtrl::SetStyle}\label{wxrichtextctrlsetstyle}
1115
1116 \func{bool}{SetStyle}{\param{const wxRichTextRange\& }{range}, \param{const wxRichTextAttr\& }{style}}
1117
1118 \func{bool}{SetStyle}{\param{long }{start}, \param{long }{end}, \param{const wxTextAttrEx\& }{style}}
1119
1120 Sets the attributes for the given range. The wxRichTextAttr version is more efficient
1121 because it does not use wxFont objects.
1122
1123 \membersection{wxRichTextCtrl::SetStyleSheet}\label{wxrichtextctrlsetstylesheet}
1124
1125 \func{void}{SetStyleSheet}{\param{wxRichTextStyleSheet* }{styleSheet}}
1126
1127 Sets the style sheet associated with the control. A style sheet allows named
1128 character and paragraph styles to be applied.
1129
1130 \membersection{wxRichTextCtrl::SetValue}\label{wxrichtextctrlsetvalue}
1131
1132 \func{void}{SetValue}{\param{const wxString\& }{value}}
1133
1134 Replaces existing content with the given text.
1135
1136 \membersection{wxRichTextCtrl::SetupScrollbars}\label{wxrichtextctrlsetupscrollbars}
1137
1138 \func{void}{SetupScrollbars}{\param{bool }{atTop = false}}
1139
1140 A helper function setting up scrollbars, for example after a resize.
1141
1142 \membersection{wxRichTextCtrl::ShowPosition}\label{wxrichtextctrlshowposition}
1143
1144 \func{void}{ShowPosition}{\param{long }{pos}}
1145
1146 Scrolls the buffer so that the given position is in view.
1147
1148 \membersection{wxRichTextCtrl::SuppressingUndo}\label{wxrichtextctrlsuppressingundo}
1149
1150 \constfunc{bool}{SuppressingUndo}{\void}
1151
1152 Returns \true if undo history suppression is on.
1153
1154 \membersection{wxRichTextCtrl::Thaw}\label{wxrichtextctrlthaw}
1155
1156 \func{void}{Thaw}{\void}
1157
1158 Call this function to end a Freeze and refresh the display.
1159
1160 \membersection{wxRichTextCtrl::Undo}\label{wxrichtextctrlundo}
1161
1162 \func{void}{Undo}{\void}
1163
1164 Undoes the command at the top of the command history, if there is one.
1165
1166 \membersection{wxRichTextCtrl::WordLeft}\label{wxrichtextctrlwordleft}
1167
1168 \func{bool}{WordLeft}{\param{int }{noWords = 1}, \param{int }{flags = 0}}
1169
1170 Moves a number of words to the left.
1171
1172 \membersection{wxRichTextCtrl::WordRight}\label{wxrichtextctrlwordright}
1173
1174 \func{bool}{WordRight}{\param{int }{noWords = 1}, \param{int }{flags = 0}}
1175
1176 Move a nuber of words to the right.
1177
1178 \membersection{wxRichTextCtrl::WriteImage}\label{wxrichtextctrlwriteimage}
1179
1180 \func{bool}{WriteImage}{\param{const wxString\& }{filename}, \param{int }{bitmapType}}
1181
1182 Loads an image from a file and writes it at the current insertion point.
1183
1184 \func{bool}{WriteImage}{\param{const wxRichTextImageBlock\& }{imageBlock}}
1185
1186 Writes an image block at the current insertion point.
1187
1188 \func{bool}{WriteImage}{\param{const wxBitmap\& }{bitmap}, \param{int }{bitmapType = wxBITMAP\_TYPE\_PNG}}
1189
1190 \func{bool}{WriteImage}{\param{const wxImage\& }{image}, \param{int }{bitmapType = wxBITMAP\_TYPE\_PNG}}
1191
1192 Write a bitmap or image at the current insertion point. Supply an optional type to use
1193 for internal and file storage of the raw data.
1194
1195 \membersection{wxRichTextCtrl::WriteText}\label{wxrichtextctrlwritetext}
1196
1197 \func{void}{WriteText}{\param{const wxString\& }{text}}
1198
1199 Writes text at the current position.
1200
1201 \membersection{wxRichTextCtrl::XYToPosition}\label{wxrichtextctrlxytoposition}
1202
1203 \constfunc{long}{XYToPosition}{\param{long }{x}, \param{long }{y}}
1204
1205 Translates from column and line number to position.