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:
Jaakko Salli 2009-10-13 14:34:47 +00:00
parent f115ff4a4f
commit cd644aa10f
2 changed files with 12 additions and 9 deletions

View File

@ -743,11 +743,12 @@ MyFrame::MyFrame(const wxString& title)
wxPanel* panel = new wxPanel(this);
// Prepare log window right away since it shows EVT_TEXTs
m_logWin = new wxTextCtrl( panel, 105, wxEmptyString, wxDefaultPosition,
wxSize(-1,125), wxTE_MULTILINE|wxFULL_REPAINT_ON_RESIZE );
m_logWin->SetEditable(false);
wxLogTextCtrl* logger = new wxLogTextCtrl( m_logWin );
m_logOld = logger->SetActiveTarget( logger );
m_logWin = new wxTextCtrl(panel, 105, wxEmptyString,
wxDefaultPosition,
wxSize(-1, 125),
wxTE_MULTILINE);
wxLogTextCtrl* logger = new wxLogTextCtrl(m_logWin);
m_logOld = logger->SetActiveTarget(logger);
logger->DisableTimestamp();

View File

@ -162,8 +162,9 @@ void FormMain::OnDumpList( wxCommandEvent& WXUNUSED(event) )
const int spacing = 8;
wxBoxSizer* topsizer = new wxBoxSizer( wxVERTICAL );
wxBoxSizer* rowsizer = new wxBoxSizer( wxHORIZONTAL );
wxTextCtrl* ed = new wxTextCtrl(dlg,11,text,
wxDefaultPosition,wxDefaultSize,wxTE_MULTILINE|wxTE_READONLY);
wxTextCtrl* ed = new wxTextCtrl(dlg, 11, text,
wxDefaultPosition, wxDefaultSize,
wxTE_MULTILINE);
rowsizer->Add( ed, 1, wxEXPAND|wxALL, spacing );
topsizer->Add( rowsizer, 1, wxEXPAND, 0 );
rowsizer = new wxBoxSizer( wxHORIZONTAL );
@ -342,8 +343,9 @@ bool FormMain::RunTests( bool fullTest, bool interactive )
const int spacing = 8;
wxBoxSizer* topsizer = new wxBoxSizer( wxVERTICAL );
wxBoxSizer* rowsizer = new wxBoxSizer( wxHORIZONTAL );
wxTextCtrl* ed = new wxTextCtrl(dlg,11,wxEmptyString,
wxDefaultPosition,wxDefaultSize,wxTE_MULTILINE|wxTE_READONLY);
wxTextCtrl* ed = new wxTextCtrl(dlg, 11, wxEmptyString,
wxDefaultPosition, wxDefaultSize,
wxTE_MULTILINE);
rowsizer->Add( ed, 1, wxEXPAND|wxALL, spacing );
topsizer->Add( rowsizer, 1, wxEXPAND, 0 );
rowsizer = new wxBoxSizer( wxHORIZONTAL );