This is the event class for wxRichTextCtrl notifications. Note that event generation is incomplete; events to be implemented include selection of text, deletion, insertion, and so on.
Event table macros
To process a rich text event, use these event handler macros to direct input to a member function that takes a wxRichTextEvent argument.
EVT_RICHTEXT_LEFT_CLICK(id, func) | Process a wxEVT_COMMAND_RICHTEXT_LEFT_CLICK event. Not currently implemented. |
EVT_RICHTEXT_RIGHT_CLICK(id, func) | Process a wxEVT_COMMAND_RICHTEXT_RIGHT_CLICK event. Not currently implemented. |
EVT_RICHTEXT_MIDDLE_CLICK(id, func) | Process a wxEVT_COMMAND_RICHTEXT_MIDDLE_CLICK event. Not currently implemented. |
EVT_RICHTEXT_LEFT_DCLICK(id, func) | Process a wxEVT_COMMAND_RICHTEXT_LEFT_DCLICK event. Not currently implemented. |
EVT_RICHTEXT_RETURN(id, func) | Process a wxEVT_COMMAND_RICHTEXT_RETURN event, generated when the user presses the return key. |
Include files
<wx/richtext/richtextctrl.h>
Data structures
Members
wxRichTextEvent::wxRichTextEvent
wxRichTextEvent::Clone
wxRichTextEvent::GetFlags
wxRichTextEvent::GetIndex
wxRichTextEvent::SetFlags
wxRichTextEvent::SetIndex
wxRichTextEvent(const wxRichTextEvent& event)
wxRichTextEvent(wxEventType commandType = wxEVT_NULL, int winid = 0)
Constructors.
wxEvent* Clone() const
Clones the event.
int GetFlags() const
Returns flags indicating modifier keys pressed.
int GetIndex() const
Not currently used.
void SetFlags(int flags)
Sets flags indicating modifier keys pressed. Possible values are wxRICHTEXT_CTRL_DOWN, wxRICHTEXT_SHIFT_DOWN, andwxRICHTEXT_ALT_DOWN.
void SetIndex(int n)
Not currently used.