]> git.saurik.com Git - wxWidgets.git/blobdiff - samples/richedit/wxlwindow.cpp
wxID_PREFERENCES added for the preferences menu item
[wxWidgets.git] / samples / richedit / wxlwindow.cpp
index 1d5869b2a3cdb0c4cc97e2de99045181231fc4f2..f39113a35c78da3c1df0fab17e204f7abdf070ba 100644 (file)
@@ -18,7 +18,7 @@
 #   pragma implementation "wxlwindow.h"
 #endif
 
-#include <wx/wxprec.h>
+#include "wx/wxprec.h"
 
 #ifdef __BORLANDC__
 #  pragma hdrstop
@@ -214,7 +214,7 @@ wxLayoutWindow::Clear(int family,
 {
    GetLayoutList()->Clear(family,size,style,weight,underline,fg,bg);
    SetBackgroundColour(GetLayoutList()->GetDefaultStyleInfo().GetBGColour());
-   wxScrolledWindow::Clear();
+   //wxScrolledWindow::Clear();
    ResizeScrollbars(true);
    SetDirty();
    SetModified(FALSE);
@@ -741,8 +741,11 @@ wxLayoutWindow::OnChar(wxKeyEvent& event)
                      && m_WrapMargin > 0
                      && m_llist->GetCursorPos().x > m_WrapMargin
                      && isspace(keyCode))
+                  {
                      m_llist->WrapLine(m_WrapMargin);
-                  m_llist->Insert((char)keyCode);
+                  }
+                  
+                  m_llist->Insert((wxChar)keyCode);
                   SetDirty();
                }
                else