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