]> git.saurik.com Git - wxWidgets.git/blobdiff - src/stc/PlatWX.cpp
added OnMouse which will trigger context menu events, added better DoMenuPopup implem...
[wxWidgets.git] / src / stc / PlatWX.cpp
index eaf9899f0374d9b6ff7f6076763c9eacf2ace546..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
 }
 
 
@@ -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
 }