X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/668e4f17be1fdeab2d08fc6d472d585447894aa7..29ea4a290850e9ae79c258774fa22153a951ff7f:/samples/richedit/wxLayout.cpp diff --git a/samples/richedit/wxLayout.cpp b/samples/richedit/wxLayout.cpp index d00d2a2186..86532e650e 100644 --- a/samples/richedit/wxLayout.cpp +++ b/samples/richedit/wxLayout.cpp @@ -11,13 +11,13 @@ #pragma implementation "wxLayout.h" #endif -#include "wx/wxprec.h" +#include #ifdef __BORLANDC__ # pragma hdrstop #endif #include "wxLayout.h" -#include "wx/textfile.h" +#include #include "Micon.xpm" @@ -125,6 +125,7 @@ MyFrame::MyFrame(void) : m_lwin->SetFocus(); Clear(); +#if 0 // create and set the background bitmap (this will result in a lattice) static const int sizeBmp = 10; wxBitmap *bitmap = new wxBitmap(sizeBmp, sizeBmp); @@ -140,6 +141,7 @@ MyFrame::MyFrame(void) : dcMem.SelectObject( wxNullBitmap ); m_lwin->SetBackgroundBitmap(bitmap); +#endif // 0 }; void @@ -236,7 +238,9 @@ MyFrame::AddSampleText(wxLayoutList *llist) void MyFrame::Clear(void) { - m_lwin->Clear(wxROMAN,16,wxNORMAL,wxNORMAL, false); + wxColour colBg(0, 0, 0); + + m_lwin->Clear(wxROMAN,16,wxNORMAL,wxNORMAL, false, wxRED, &colBg); } @@ -328,7 +332,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);