Past Veto
Efraín López
tecnomaya at cabsagt.com
Fri Oct 26 21:00:55 PDT 2007
I solved the problem catching both ctrl+v char and paste command
EVT_MENU( wxID_PASTE, myclass::OnPasteMenu )
EVT_CHAR( myclass::OnChar )
----- Original Message ----- =
From: Efra=EDn L=F3pez =
To: wx-users at lists.wxwidgets.org =
Sent: Friday, October 26, 2007 6:28 PM
Subject: Past Veto
Hi, using 2.8.6 and wxWIN
I have a class derived from wxTextCtrl
I need to veto the past event
I can catch the event with =
EVT_COMMAND( wxID_ANY, wxID_PASTE, myclass::OnPaste )
or =
EVT_TEXT_PASTE( wxID_ANY, wxID_PASTE, myclass::OnPaste )
but I can't find the way to veto the event
wxClipboardTextEvent docs says if I don't skip the event, it doesn't take=
place, but in my case, it is always pasted
can someone can help me how to do this?
thanks
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.wxwidgets.org/pipermail/wx-users/attachments/20071026/82e=
64e49/attachment.htm
More information about the wx-users
mailing list