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
This commit is contained in:
Václav Slavík
2008-03-15 12:25:25 +00:00
parent 03d4194d6b
commit 3d6c68c1c9

View File

@@ -655,15 +655,30 @@ public:
wxEVT_COMMAND_TEXT_CUT and wxEVT_COMMAND_TEXT_PASTE. wxEVT_COMMAND_TEXT_CUT and wxEVT_COMMAND_TEXT_PASTE.
If any of these events is processed (without being skipped) by an event 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 handler, the corresponding operation doesn't take place which allows to
the text from being copied from or pasted to a control. It is also possible to prevent the text from being copied from or pasted to a control. It is also
examine the clipboard contents in the PASTE event handler and transform it in possible to examine the clipboard contents in the PASTE event handler and
some way before inserting in a control -- for example, changing its case or transform it in some way before inserting in a control -- for example,
removing invalid characters. changing its case or removing invalid characters.
Finally notice that a CUT event is always preceded by the COPY event which 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 makes it possible to only process the latter if it doesn't matter if the
was copied or cut. 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} @library{wxcore}
@category{events} @category{events}
@@ -674,10 +689,9 @@ class wxClipboardTextEvent : public wxCommandEvent
{ {
public: public:
/** /**
Constructor.
*/ */
wxClipboardTextEvent(wxEventType commandType = wxEVT_NULL, wxClipboardTextEvent(wxEventType commandType = wxEVT_NULL, int id = 0);
int id = 0);
}; };