From 05c43d46775b9fee59b124f007274dc5b50c5594 Mon Sep 17 00:00:00 2001 From: Robin Dunn Date: Wed, 17 May 2006 05:15:32 +0000 Subject: [PATCH] Clipboard events git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@39180 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- wxPython/src/_event.i | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/wxPython/src/_event.i b/wxPython/src/_event.i index 7d6aeb93e1..faa206f414 100644 --- a/wxPython/src/_event.i +++ b/wxPython/src/_event.i @@ -175,6 +175,10 @@ wxEventType wxNewEventType(); %constant wxEventType wxEVT_MOVING; %constant wxEventType wxEVT_HIBERNATE; +%constant wxEventType wxEVT_COMMAND_TEXT_COPY; +%constant wxEventType wxEVT_COMMAND_TEXT_CUT; +%constant wxEventType wxEVT_COMMAND_TEXT_PASTE; + // Generic command events // Note: a click is a higher-level event than button down/up @@ -366,6 +370,9 @@ EVT_UPDATE_UI_RANGE = wx.PyEventBinder( wxEVT_UPDATE_UI, 2) EVT_CONTEXT_MENU = wx.PyEventBinder( wxEVT_CONTEXT_MENU ) +EVT_TEXT_CUT = wx.PyEventBinder( wxEVT_COMMAND_TEXT_CUT ) +EVT_TEXT_COPY = wx.PyEventBinder( wxEVT_COMMAND_TEXT_COPY ) +EVT_TEXT_PASTE = wx.PyEventBinder( wxEVT_COMMAND_TEXT_PASTE ) } @@ -2429,6 +2436,25 @@ to windows with the wx.WS_EX_PROCESS_IDLE extra window style set.", ""); }; +//--------------------------------------------------------------------------- +%newgroup; + + +DocStr(wxClipboardTextEvent, +"A Clipboard Text event is sent when a window intercepts a text +copy/cut/paste message, i.e. the user has cut/copied/pasted data +from/into a text control via ctrl-C/X/V, ctrl/shift-del/insert, a +popup menu command, etc. NOTE : under windows these events are *NOT* +generated automatically for a Rich Edit text control.", ""); + +class wxClipboardTextEvent : public wxCommandEvent +{ +public: + wxClipboardTextEvent(wxEventType type = wxEVT_NULL, + wxWindowID winid = 0); +}; + + //--------------------------------------------------------------------------- %newgroup; -- 2.45.2