X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/677ded95390173ee6a17fcb476608ca9c2b16fe5..938ad7687f55ee6b66cf2cc8c5cc39bc18fa1ca1:/utils/configtool/src/mainframe.cpp?ds=sidebyside diff --git a/utils/configtool/src/mainframe.cpp b/utils/configtool/src/mainframe.cpp index 43247a405c..a9920918b0 100644 --- a/utils/configtool/src/mainframe.cpp +++ b/utils/configtool/src/mainframe.cpp @@ -110,7 +110,7 @@ ctMainFrame::ctMainFrame(wxDocManager *manager, wxFrame *parent, wxWindowID id, m_findDialog = NULL; m_treeSplitterWindow = new wxSplitterWindow(this, wxID_ANY, wxDefaultPosition, wxSize(400, 300), - wxSP_3DSASH|wxSP_3DBORDER|wxNO_FULL_REPAINT_ON_RESIZE|wxCLIP_CHILDREN); + wxSP_3DSASH|wxSP_3DBORDER|wxNO_FULL_REPAINT_ON_RESIZE|wxCLIP_CHILDREN|wxSP_NO_XP_THEME); m_configTreeCtrl = new ctConfigTreeCtrl(m_treeSplitterWindow, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTR_HAS_BUTTONS|wxNO_BORDER|wxNO_FULL_REPAINT_ON_RESIZE|wxCLIP_CHILDREN); @@ -421,7 +421,9 @@ void ctMainFrame::OnUpdateDisable(wxUpdateUIEvent& event) IMPLEMENT_CLASS(ctOutputWindow, wxPanel) BEGIN_EVENT_TABLE(ctOutputWindow, wxPanel) +#if wxUSE_CLIPBOARD EVT_BUTTON(wxID_COPY, ctOutputWindow::OnCopyToClipboard) +#endif // wxUSE_CLIPBOARD EVT_BUTTON(wxID_SAVE, ctOutputWindow::OnSaveText) EVT_BUTTON(ctID_REGENERATE, ctOutputWindow::OnRegenerate) EVT_UPDATE_UI(wxID_SAVE, ctOutputWindow::OnUpdateSaveText) @@ -471,6 +473,7 @@ void ctOutputWindow::CreateWindows() SetSizer( item0 ); } +#if wxUSE_CLIPBOARD /// Copies the text to the clipboard. void ctOutputWindow::OnCopyToClipboard(wxCommandEvent& WXUNUSED(event)) { @@ -506,6 +509,7 @@ void ctOutputWindow::OnCopyToClipboard(wxCommandEvent& WXUNUSED(event)) wxTheClipboard->Close(); } } +#endif // wxUSE_CLIPBOARD /// Sets the code in the text control. void ctOutputWindow::SetText(const wxString& text)