]> git.saurik.com Git - wxWidgets.git/commitdiff
restored missing parts of wxClipboardTextEvent docs lost in the conversion
authorVáclav Slavík <vslavik@fastmail.fm>
Sat, 15 Mar 2008 12:25:25 +0000 (12:25 +0000)
committerVáclav Slavík <vslavik@fastmail.fm>
Sat, 15 Mar 2008 12:25:25 +0000 (12:25 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@52544 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

interface/event.h

index 28e44fed5d2df871a8576c0ef9a97a699d53fc33..beca799b220271853f236bf139f423816b8497f3 100644 (file)
@@ -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);