]> git.saurik.com Git - wxWidgets.git/blame - docs/latex/wx/richtextevent.tex
fix the include files
[wxWidgets.git] / docs / latex / wx / richtextevent.tex
CommitLineData
5f35b46a
JS
1\section{\class{wxRichTextEvent}}\label{wxrichtextevent}
2
48c8439f 3This is the event class for \helpref{wxRichTextCtrl}{wxrichtextctrl} notifications.
5f35b46a
JS
4
5\wxheading{Event table macros}
6
7To process a rich text event, use these event handler macros to direct input to a member
8function that takes a wxRichTextEvent argument.
9
48c8439f 10\twocolwidtha{10cm}
5f35b46a 11\begin{twocollist}\itemsep=0pt
48c8439f
JS
12%\twocolitem{{\bf EVT\_RICHTEXT\_LEFT\_CLICK(id, func)}}{Process a wxEVT\_COMMAND\_RICHTEXT\_LEFT\_CLICK event. Not currently implemented.}
13%\twocolitem{{\bf EVT\_RICHTEXT\_RIGHT\_CLICK(id, func)}}{Process a wxEVT\_COMMAND\_RICHTEXT\_RIGHT\_CLICK event. Not currently implemented.}
14%\twocolitem{{\bf EVT\_RICHTEXT\_MIDDLE\_CLICK(id, func)}}{Process a wxEVT\_COMMAND\_RICHTEXT\_MIDDLE\_CLICK event. Not currently implemented.}
15%\twocolitem{{\bf EVT\_RICHTEXT\_LEFT\_DCLICK(id, func)}}{Process a wxEVT\_COMMAND\_RICHTEXT\_LEFT\_DCLICK event. Not currently implemented.}
16\twocolitem{{\bf EVT\_RICHTEXT\_CHARACTER(id, func)}}{Process a wxEVT\_COMMAND\_RICHTEXT\_CHARACTER event, generated when the user presses a character key. Valid event functions: GetFlags, GetPosition, GetCharacter.}
17\twocolitem{{\bf EVT\_RICHTEXT\_DELETE(id, func)}}{Process a wxEVT\_COMMAND\_RICHTEXT\_DELETE event, generated when the user presses the backspace or delete key. Valid event functions: GetFlags, GetPosition.}
18\twocolitem{{\bf EVT\_RICHTEXT\_RETURN(id, func)}}{Process a wxEVT\_COMMAND\_RICHTEXT\_RETURN event, generated when the user presses the return key. Valid event functions: GetFlags, GetPosition.}
19%\twocolitem{{\bf EVT\_RICHTEXT\_SELECTION\_CHANGED(id, func)}}{Process a wxEVT\_COMMAND\_RICHTEXT\_SELECTION\_CHANGED event, generated when the selection has been changed. Not currently implemented.}
20\twocolitem{{\bf EVT\_RICHTEXT\_STYLE\_CHANGED(id, func)}}{Process a wxEVT\_COMMAND\_RICHTEXT\_STYLE\_CHANGED event, generated when styling has been applied to the control. Valid event functions: GetPosition, GetRange.}
21%\twocolitem{{\bf EVT\_RICHTEXT\_STYLESHEET\_CHANGING(id, func)}}{Process a wxEVT\_COMMAND\_RICHTEXT\_STYLESHEET\_CHANGING event, generated when the control's stylesheet is about to change, for example the user added, edited or deleted a style.}
22\twocolitem{{\bf EVT\_RICHTEXT\_STYLESHEET\_CHANGED(id, func)}}{Process a wxEVT\_COMMAND\_RICHTEXT\_STYLESHEET\_CHANGING event, generated when the control's stylesheet has changed, for example the user added, edited or deleted a style. Valid event functions: GetRange, GetPosition.}
23\twocolitem{{\bf EVT\_RICHTEXT\_STYLESHEET\_REPLACING(id, func)}}{Process a wxEVT\_COMMAND\_RICHTEXT\_STYLESHEET\_REPLACING event, generated when the control's stylesheet is about to be replaced, for example when a file is loaded into the control. Valid event functions: Veto, GetOldStyleSheet, GetNewStyleSheet.}
24\twocolitem{{\bf EVT\_RICHTEXT\_STYLESHEET\_REPLACED(id, func)}}{Process a wxEVT\_COMMAND\_RICHTEXT\_STYLESHEET\_REPLACED event, generated when the control's stylesheet has been replaced, for example when a file is loaded into the control. Valid event functions: GetOldStyleSheet, GetNewStyleSheet.}
25\twocolitem{{\bf EVT\_RICHTEXT\_CONTENT\_INSERTED(id, func)}}{Process a wxEVT\_COMMAND\_RICHTEXT\_CONTENT\_INSERTED event, generated when content has been inserted into the control. Valid event functions: GetPosition, GetRange.}
26\twocolitem{{\bf EVT\_RICHTEXT\_CONTENT\_DELETED(id, func)}}{Process a wxEVT\_COMMAND\_RICHTEXT\_CONTENT\_DELETED event, generated when content has been deleted from the control. Valid event functions: GetPosition, GetRange.}
cd8ba0d9 27\twocolitem{{\bf EVT\_RICHTEXT\_BUFFER\_RESET(id, func)}}{Process a wxEVT\_COMMAND\_RICHTEXT\_BUFFER\_RESET event, generated when the buffer has been reset by deleting all content. You can use this to set a default style for the first new paragraph.}
5f35b46a
JS
28\end{twocollist}%
29
30\wxheading{Derived from}
31
7376079d
VZ
32\helpref{wxNotifyEvent}{wxnotifyevent}\\
33\helpref{wxCommandEvent}{wxcommandevent}\\
34\helpref{wxEvent}{wxevent}\\
35\helpref{wxObject}{wxobject}
5f35b46a
JS
36
37\wxheading{Include files}
38
39<wx/richtext/richtextctrl.h>
40
a7af285d
VZ
41\wxheading{Library}
42
43\helpref{wxRichtext}{librarieslist}
44
5f35b46a
JS
45\wxheading{Data structures}
46
47\latexignore{\rtfignore{\wxheading{Members}}}
48
49\membersection{wxRichTextEvent::wxRichTextEvent}\label{wxrichtexteventwxrichtextevent}
50
51\func{}{wxRichTextEvent}{\param{const wxRichTextEvent\& }{event}}
52
53\func{}{wxRichTextEvent}{\param{wxEventType }{commandType = wxEVT\_NULL}, \param{int }{winid = 0}}
54
55Constructors.
56
57\membersection{wxRichTextEvent::Clone}\label{wxrichtexteventclone}
58
59\constfunc{wxEvent*}{Clone}{\void}
60
61Clones the event.
62
48c8439f
JS
63\membersection{wxRichTextEvent::GetCharacter}\label{wxrichtexteventgetcharacter}
64
65\constfunc{wxChar}{GetCharacter}{\void}
66
67Returns the character pressed, within a wxEVT\_COMMAND\_RICHTEXT\_CHARACTER event.
68
5f35b46a
JS
69\membersection{wxRichTextEvent::GetFlags}\label{wxrichtexteventgetflags}
70
71\constfunc{int}{GetFlags}{\void}
72
48c8439f
JS
73Returns flags indicating modifier keys pressed. Possible values are wxRICHTEXT\_CTRL\_DOWN,
74wxRICHTEXT\_SHIFT\_DOWN, and wxRICHTEXT\_ALT\_DOWN.
75
76\membersection{wxRichTextEvent::GetNewStyleSheet}\label{wxrichtexteventgetnewstylesheet}
77
78\constfunc{wxRichTextStyleSheet*}{GetNewStyleSheet}{\void}
79
80Returns the new style sheet. Can be used in a wxEVT\_COMMAND\_RICHTEXT\_STYLESHEET\_CHANGING or
81wxEVT\_COMMAND\_RICHTEXT\_STYLESHEET\_CHANGED event handler.
82
83\membersection{wxRichTextEvent::GetOldStyleSheet}\label{wxrichtexteventgetoldstylesheet}
84
85\constfunc{wxRichTextStyleSheet*}{GetOldStyleSheet}{\void}
86
87Returns the old style sheet. Can be used in a wxEVT\_COMMAND\_RICHTEXT\_STYLESHEET\_CHANGING or
88wxEVT\_COMMAND\_RICHTEXT\_STYLESHEET\_CHANGED event handler.
89
90\membersection{wxRichTextEvent::GetPosition}\label{wxrichtexteventgetposition}
91
92\constfunc{long}{GetPosition}{\void}
93
94Returns the buffer position at which the event occured.
5f35b46a 95
48c8439f 96\membersection{wxRichTextEvent::GetRange}\label{wxrichtexteventgetrange}
5f35b46a 97
48c8439f 98\constfunc{wxRichTextRange}{GetRange}{\void}
5f35b46a 99
48c8439f
JS
100Gets the range for the current operation.
101
102\membersection{wxRichTextEvent::SetCharacter}\label{wxrichtexteventsetcharacter}
103
104\func{void}{SetCharacter}{\param{wxChar }{ch}}
105
106Sets the character variable.
5f35b46a
JS
107
108\membersection{wxRichTextEvent::SetFlags}\label{wxrichtexteventsetflags}
109
110\func{void}{SetFlags}{\param{int }{flags}}
111
112Sets flags indicating modifier keys pressed. Possible values are wxRICHTEXT\_CTRL\_DOWN,
48c8439f
JS
113wxRICHTEXT\_SHIFT\_DOWN, and wxRICHTEXT\_ALT\_DOWN.
114
115\membersection{wxRichTextEvent::SetNewStyleSheet}\label{wxrichtexteventsetnewstylesheet}
116
117\func{void}{SetNewStyleSheet}{\param{wxRichTextStyleSheet*}{ sheet}}
118
119Sets the new style sheet variable.
120
121\membersection{wxRichTextEvent::SetOldStyleSheet}\label{wxrichtexteventsetoldstylesheet}
122
123\func{void}{SetOldStyleSheet}{\param{wxRichTextStyleSheet*}{ sheet}}
124
125Sets the old style sheet variable.
126
127\membersection{wxRichTextEvent::SetPosition}\label{wxrichtexteventsetposition}
128
129\func{void}{SetPosition}{\param{long }{pos}}
130
131Sets the buffer position variable.
5f35b46a 132
48c8439f 133\membersection{wxRichTextEvent::SetRange}\label{wxrichtexteventsetrange}
5f35b46a 134
48c8439f 135\func{void}{SetRange}{\param{const wxRichTextRange\&}{ range}}
5f35b46a 136
48c8439f 137Sets the range variable.
62a268cc 138