Minor mods if any

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@5910 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Julian Smart
2000-02-08 19:22:40 +00:00
parent b487a08f91
commit c86423f922
2 changed files with 4 additions and 3 deletions

View File

@@ -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) )

View File

@@ -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);
}