From 3d6c68c1c9688885c64e8033cc6680194e8559dd Mon Sep 17 00:00:00 2001 From: =?utf8?q?V=C3=A1clav=20Slav=C3=ADk?= Date: Sat, 15 Mar 2008 12:25:25 +0000 Subject: [PATCH] restored missing parts of wxClipboardTextEvent docs lost in the conversion git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@52544 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- interface/event.h | 36 +++++++++++++++++++++++++----------- 1 file changed, 25 insertions(+), 11 deletions(-) diff --git a/interface/event.h b/interface/event.h index 28e44fed5d..beca799b22 100644 --- a/interface/event.h +++ b/interface/event.h @@ -655,15 +655,30 @@ public: wxEVT_COMMAND_TEXT_CUT and wxEVT_COMMAND_TEXT_PASTE. If any of these events is processed (without being skipped) by an event - handler, the corresponding operation doesn't take place which allows to prevent - the text from being copied from or pasted to a control. It is also possible to - examine the clipboard contents in the PASTE event handler and transform it in - some way before inserting in a control -- for example, changing its case or - removing invalid characters. + handler, the corresponding operation doesn't take place which allows to + prevent the text from being copied from or pasted to a control. It is also + possible to examine the clipboard contents in the PASTE event handler and + transform it in some way before inserting in a control -- for example, + changing its case or removing invalid characters. Finally notice that a CUT event is always preceded by the COPY event which - makes it possible to only process the latter if it doesn't matter if the text - was copied or cut. + makes it possible to only process the latter if it doesn't matter if the + text was copied or cut. + + @beginEventTable + @event{EVT_TEXT_COPY(id, func)}: + Some or all of the controls content was copied to the clipboard. + @event{EVT_TEXT_CUT(id, func)}: + Some or all of the controls content was cut (i.e. copied and + deleted). + @event{EVT_TEXT_PASTE(id, func)}: + Clipboard content was pasted into the control. + @endEventTable + + @note + These events are currently only generated by wxComboBox and under Windows + and wxTextCtrl under Windows and GTK and are not generated for the text + controls with wxTE_RICH style under Windows. @library{wxcore} @category{events} @@ -674,10 +689,9 @@ class wxClipboardTextEvent : public wxCommandEvent { public: /** - + Constructor. */ - wxClipboardTextEvent(wxEventType commandType = wxEVT_NULL, - int id = 0); + wxClipboardTextEvent(wxEventType commandType = wxEVT_NULL, int id = 0); }; @@ -2775,4 +2789,4 @@ public: Otherwise, it dispatches @a event immediately using wxEvtHandler::ProcessEvent. See the respective documentation for details (and caveats). */ -void wxPostEvent(wxEvtHandler* dest, wxEvent& event); \ No newline at end of file +void wxPostEvent(wxEvtHandler* dest, wxEvent& event); -- 2.49.0