]> git.saurik.com Git - wxWidgets.git/blobdiff - src/x11/textctrl.cpp
Just forward Stricmp() in wx/string.h to wxCRT_StricmpA().
[wxWidgets.git] / src / x11 / textctrl.cpp
index e25156a2b219f4c7a958e58be58ba2692f85a7c3..b214e264e1543fb808580932b3496b6006ef59f5 100644 (file)
@@ -1556,7 +1556,7 @@ void wxTextCtrl::DrawLine( wxDC &dc, int x, int y, const wxString &line2, int li
 
         size_t pos = 0;
         wxString token( GetNextToken( line, pos ) );
-        while (!token.IsNull())
+        while ( !token.empty() )
         {
             if (m_keywords.Index( token ) != wxNOT_FOUND)
             {
@@ -1896,7 +1896,7 @@ void wxTextCtrl::OnChar( wxKeyEvent &event )
         {
             if (m_windowStyle & wxTE_PROCESS_ENTER)
             {
-                wxCommandEvent event(wxEVT_COMMAND_TEXT_ENTER, m_windowId);
+                wxCommandEvent event(wxEVT_TEXT_ENTER, m_windowId);
                 event.SetEventObject(this);
                 event.SetString(GetValue());
                 if (HandleWindowEvent(event)) return;