false,
stc2wx(faceName),
encoding);
+#ifdef __WXMAC__
+ ((wxFont*)id)->SetNoAntiAliasing( true ) ;
+#endif
}
}
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
}