I have to make a cut/copy/paste controls for an aplication with wxwindows libraries. the aplication is based in a principal frame with a various small dialogs with numerical inputs (wxTextCtrl). I only want cut/copy/paste the data's of these wxtextctrl of the custom dialogs that I have made.
I have thought searching in the documentation in three options.
a) Using the wxclipboard class, but. How the program knows what text is selected? b) Using some functions of the wxtextctrl. (virtual void cut() for example). c) When the cut/copy/paste tool is pushed launch an event like like Ctrl+v Ctrl+x (external events).
If anyone knows, where are some code or an example.
Use standard Cut/Copy/Paste functions. May be this will be solution. I wrote this functions to organize my Edit menu. And TextCtrl itself supports cut&paste without any additional code. // text editor control vTextCtrl *m_pTextCtrl; ..... // Basic edit functions void MyFrame::OnCopy(wxCommandEvent& event) { m_pTextCtrl->Copy(); }