void WebFrame::OnFind(wxCommandEvent& WXUNUSED(evt)) { wxString value = m_browser->GetSelectedText(); if(value.Len() > 150) { value.Truncate(150); } m_find_ctrl->SetValue(value); if(!m_find_toolbar->IsShown()){ m_find_toolbar->Show(true); SendSizeEvent(); } m_find_ctrl->SelectAll(); }
void OnCopyClick(wxCommandEvent&) { m_txtDescription->SelectAll(); m_txtDescription->Copy(); }