]> git.saurik.com Git - wxWidgets.git/blobdiff - src/stc/PlatWX.cpp
support raw access to DDBs as well as DIBs
[wxWidgets.git] / src / stc / PlatWX.cpp
index 8edc3bf5e762385dc47ec701af4e0c0f7a7e51e2..fbf1faf2a370d9db55d4eb62d7bfadcdd8298f63 100644 (file)
@@ -189,6 +189,9 @@ void Font::Create(const char *faceName, int characterSet, int size, bool bold, b
                     false,
                     stc2wx(faceName),
                     encoding);
+#ifdef __WXMAC__
+        ((wxFont*)id)->SetNoAntiAliasing( true ) ;
+#endif
 }
 
 
@@ -804,7 +807,7 @@ void ListBox::Clear() {
 }
 
 void ListBox::Append(char *s) {
-    GETLB(id)->Append(s);
+    GETLB(id)->Append(stc2wx(s));
 }
 
 int ListBox::Length() {
@@ -812,12 +815,17 @@ int ListBox::Length() {
 }
 
 void ListBox::Select(int n) {
-    GETLB(id)->SetSelection(n);
+    bool select = TRUE;
+    if (n == -1) {
+        n = 0;
+        select = FALSE;
+    }
+    GETLB(id)->SetSelection(n, select);
 #ifdef __WXGTK__
     if (n > 4)
         n = n - 4;
     else
-        n = 1;
+        n = 0;
     GETLB(id)->SetFirstItem(n);
 #endif
 }
@@ -906,6 +914,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