From: Julian Smart Date: Tue, 8 Feb 2000 19:22:40 +0000 (+0000) Subject: Minor mods if any X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/c86423f9221c0120010b38022d0dd7d1143cca7e Minor mods if any git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@5910 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/samples/dialogs/dialogs.cpp b/samples/dialogs/dialogs.cpp index f961b7ca09..61fe0daccd 100644 --- a/samples/dialogs/dialogs.cpp +++ b/samples/dialogs/dialogs.cpp @@ -238,7 +238,7 @@ void MyFrame::LogDialog(wxCommandEvent& event) wxLog::FlushActive(); - wxLogMessage("And this is the same dialog but with onle one message"); + wxLogMessage("And this is the same dialog but with only one message."); } void MyFrame::MessageBox(wxCommandEvent& WXUNUSED(event) ) diff --git a/samples/listctrl/listtest.cpp b/samples/listctrl/listtest.cpp index 4d9fa90c9f..ba2cd59791 100644 --- a/samples/listctrl/listtest.cpp +++ b/samples/listctrl/listtest.cpp @@ -168,10 +168,10 @@ bool MyApp::OnInit() menubar->Append(menuCol, "&Colour"); frame->SetMenuBar(menubar); - // Make a panel with a message frame->m_listCtrl = new MyListCtrl(frame, LIST_CTRL, wxPoint(0, 0), wxSize(400, 200), wxLC_LIST|wxSUNKEN_BORDER|wxLC_EDIT_LABELS ); // wxLC_LIST|wxLC_USER_TEXT|wxSUNKEN_BORDER); // wxLC_USER_TEXT requires app to supply all text on demand + frame->m_logWindow = new wxTextCtrl(frame, -1, "", wxPoint(0, 0), wxSize(400, 200), wxTE_MULTILINE|wxSUNKEN_BORDER); wxLayoutConstraints *c = new wxLayoutConstraints; @@ -192,7 +192,8 @@ bool MyApp::OnInit() wxString buf; for ( int i=0; i < 30; i++) { - buf.Printf(_T("Item %d"), i); + wxChar buf[20]; + wxSprintf(buf, _T("Item %d"), i); frame->m_listCtrl->InsertItem(i, buf); }