X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/4005cc780c59b38290754ff3fb5199e792e4f094..d2befda32f447caf1e2f417927ba17cedfe8b6ef:/samples/richedit/wxLayout.cpp diff --git a/samples/richedit/wxLayout.cpp b/samples/richedit/wxLayout.cpp index c23c45580b..f9957ef8f4 100644 --- a/samples/richedit/wxLayout.cpp +++ b/samples/richedit/wxLayout.cpp @@ -123,6 +123,12 @@ MyFrame::MyFrame(void) : m_lwin->SetEditable(true); m_lwin->SetWrapMargin(40); m_lwin->SetFocus(); + + // JACS: under MSW, the window doesn't show the caret initially, + // and the following line I added doesn't help either. + // going to another window and then back again fixes it. + // m_lwin->OnSetFocus(wxFocusEvent()); + Clear(); #if 0 @@ -238,9 +244,9 @@ MyFrame::AddSampleText(wxLayoutList *llist) void MyFrame::Clear(void) { - wxColour colBg(0, 255, 255); + wxColour colBg(0, 0, 0); - m_lwin->Clear(wxROMAN,16,wxNORMAL,wxNORMAL, false, wxGREEN, &colBg); + m_lwin->Clear(wxROMAN,16,wxNORMAL,wxNORMAL, false, wxRED, &colBg); } @@ -332,7 +338,7 @@ void MyFrame::OnCommand( wxCommandEvent &event ) { wxString line; wxLayoutList *llist = m_lwin->GetLayoutList(); - for(int i = 1; i < 5000; i++) + for(int i = 1; i < 300; i++) { line.Printf("This is line number %d.", i); llist->Insert(line);