Removed wxTE_READONLY style from multi-line wxTextCtrls in combo and propgrid samples (looks a bit better that way on wxMSW)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62398 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -743,9 +743,10 @@ MyFrame::MyFrame(const wxString& title)
|
|||||||
wxPanel* panel = new wxPanel(this);
|
wxPanel* panel = new wxPanel(this);
|
||||||
|
|
||||||
// Prepare log window right away since it shows EVT_TEXTs
|
// Prepare log window right away since it shows EVT_TEXTs
|
||||||
m_logWin = new wxTextCtrl( panel, 105, wxEmptyString, wxDefaultPosition,
|
m_logWin = new wxTextCtrl(panel, 105, wxEmptyString,
|
||||||
wxSize(-1,125), wxTE_MULTILINE|wxFULL_REPAINT_ON_RESIZE );
|
wxDefaultPosition,
|
||||||
m_logWin->SetEditable(false);
|
wxSize(-1, 125),
|
||||||
|
wxTE_MULTILINE);
|
||||||
wxLogTextCtrl* logger = new wxLogTextCtrl(m_logWin);
|
wxLogTextCtrl* logger = new wxLogTextCtrl(m_logWin);
|
||||||
m_logOld = logger->SetActiveTarget(logger);
|
m_logOld = logger->SetActiveTarget(logger);
|
||||||
logger->DisableTimestamp();
|
logger->DisableTimestamp();
|
||||||
|
@@ -163,7 +163,8 @@ void FormMain::OnDumpList( wxCommandEvent& WXUNUSED(event) )
|
|||||||
wxBoxSizer* topsizer = new wxBoxSizer( wxVERTICAL );
|
wxBoxSizer* topsizer = new wxBoxSizer( wxVERTICAL );
|
||||||
wxBoxSizer* rowsizer = new wxBoxSizer( wxHORIZONTAL );
|
wxBoxSizer* rowsizer = new wxBoxSizer( wxHORIZONTAL );
|
||||||
wxTextCtrl* ed = new wxTextCtrl(dlg, 11, text,
|
wxTextCtrl* ed = new wxTextCtrl(dlg, 11, text,
|
||||||
wxDefaultPosition,wxDefaultSize,wxTE_MULTILINE|wxTE_READONLY);
|
wxDefaultPosition, wxDefaultSize,
|
||||||
|
wxTE_MULTILINE);
|
||||||
rowsizer->Add( ed, 1, wxEXPAND|wxALL, spacing );
|
rowsizer->Add( ed, 1, wxEXPAND|wxALL, spacing );
|
||||||
topsizer->Add( rowsizer, 1, wxEXPAND, 0 );
|
topsizer->Add( rowsizer, 1, wxEXPAND, 0 );
|
||||||
rowsizer = new wxBoxSizer( wxHORIZONTAL );
|
rowsizer = new wxBoxSizer( wxHORIZONTAL );
|
||||||
@@ -343,7 +344,8 @@ bool FormMain::RunTests( bool fullTest, bool interactive )
|
|||||||
wxBoxSizer* topsizer = new wxBoxSizer( wxVERTICAL );
|
wxBoxSizer* topsizer = new wxBoxSizer( wxVERTICAL );
|
||||||
wxBoxSizer* rowsizer = new wxBoxSizer( wxHORIZONTAL );
|
wxBoxSizer* rowsizer = new wxBoxSizer( wxHORIZONTAL );
|
||||||
wxTextCtrl* ed = new wxTextCtrl(dlg, 11, wxEmptyString,
|
wxTextCtrl* ed = new wxTextCtrl(dlg, 11, wxEmptyString,
|
||||||
wxDefaultPosition,wxDefaultSize,wxTE_MULTILINE|wxTE_READONLY);
|
wxDefaultPosition, wxDefaultSize,
|
||||||
|
wxTE_MULTILINE);
|
||||||
rowsizer->Add( ed, 1, wxEXPAND|wxALL, spacing );
|
rowsizer->Add( ed, 1, wxEXPAND|wxALL, spacing );
|
||||||
topsizer->Add( rowsizer, 1, wxEXPAND, 0 );
|
topsizer->Add( rowsizer, 1, wxEXPAND, 0 );
|
||||||
rowsizer = new wxBoxSizer( wxHORIZONTAL );
|
rowsizer = new wxBoxSizer( wxHORIZONTAL );
|
||||||
|
Reference in New Issue
Block a user