false,
stc2wx(faceName),
encoding);
+#ifdef __WXMAC__
+ ((wxFont*)id)->SetNoAntiAliasing( true ) ;
+#endif
}
#else
wxCursor wc = wxCursor(cursorId) ;
#endif
- GETWIN(id)->SetCursor(wc);
+ GETWIN(id)->SetCursor(wc);
}
// Helper classes for ListBox
-#if defined(__WXMAC__)
+#if 1 // defined(__WXMAC__)
class wxSTCListBoxWin : public wxListBox {
public:
wxSTCListBoxWin(wxWindow* parent, wxWindowID id)
}
void ListBox::Append(char *s) {
- GETLB(id)->Append(s);
+ GETLB(id)->Append(stc2wx(s));
}
int ListBox::Length() {
if (n > 4)
n = n - 4;
else
- n = 1;
+ n = 0;
GETLB(id)->SetFirstItem(n);
#endif
}
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