]> git.saurik.com Git - wxWidgets.git/blobdiff - src/stc/PlatWX.cpp
Start() should resume the stopwatch if it is suspended
[wxWidgets.git] / src / stc / PlatWX.cpp
index 8edc3bf5e762385dc47ec701af4e0c0f7a7e51e2..68bd44f2ea8d54324c26884ef0f6eb1509de1649 100644 (file)
@@ -804,7 +804,7 @@ void ListBox::Clear() {
 }
 
 void ListBox::Append(char *s) {
-    GETLB(id)->Append(s);
+    GETLB(id)->Append(stc2wx(s));
 }
 
 int ListBox::Length() {
@@ -817,7 +817,7 @@ void ListBox::Select(int n) {
     if (n > 4)
         n = n - 4;
     else
-        n = 1;
+        n = 0;
     GETLB(id)->SetFirstItem(n);
 #endif
 }
@@ -906,6 +906,15 @@ long Platform::SendScintilla(WindowID w,
     return stc->SendMsg(msg, wParam, lParam);
 }
 
+long Platform::SendScintillaPointer(WindowID w,
+                                    unsigned int msg,
+                                    unsigned long wParam,
+                                    void *lParam) {
+
+    wxStyledTextCtrl* stc = (wxStyledTextCtrl*)w;
+    return stc->SendMsg(msg, wParam, (long)lParam);
+}
+
 
 // These are utility functions not really tied to a platform