Contents Up Previous Next

wxRichTextEvent

This is the event class for wxRichTextCtrl notifications. Note that event generation is very incomplete; we need to implement events such as 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.
Derived from

wxNotifyEvent

Include files

<wx/richtext/richtextctrl.h>

Data structures

Members

wxRichTextEvent::wxRichTextEvent
wxRichTextEvent::Clone
wxRichTextEvent::GetFlags
wxRichTextEvent::GetIndex
wxRichTextEvent::SetFlags
wxRichTextEvent::SetIndex


wxRichTextEvent::wxRichTextEvent

wxRichTextEvent(const wxRichTextEvent& event)

wxRichTextEvent(wxEventType commandType = wxEVT_NULL, int winid = 0)

Constructors.


wxRichTextEvent::Clone

wxEvent* Clone() const

Clones the event.


wxRichTextEvent::GetFlags

int GetFlags() const

Returns flags indicating modifier keys pressed.


wxRichTextEvent::GetIndex

int GetIndex() const

Not currently used.


wxRichTextEvent::SetFlags

void SetFlags(int flags)

Sets flags indicating modifier keys pressed. Possible values are wxRICHTEXT_CTRL_DOWN, wxRICHTEXT_SHIFT_DOWN, andwxRICHTEXT_ALT_DOWN.


wxRichTextEvent::SetIndex

void SetIndex(int n)

Not currently used.