#include "wx/stc/stc.h"
-#ifdef __WXGTK__
-#include <gtk/gtk.h>
-#endif
-
-
Point Point::FromLong(long lpoint) {
return Point(lpoint & 0xFFFF, lpoint >> 16);
}
wxColour wxColourFromCA(const ColourAllocated& ca) {
ColourDesired cd(ca.AsLong());
- return wxColour(cd.GetRed(), cd.GetGreen(), cd.GetBlue());
+ return wxColour((unsigned char)cd.GetRed(),
+ (unsigned char)cd.GetGreen(),
+ (unsigned char)cd.GetBlue());
}
//----------------------------------------------------------------------
event.Skip();
}
+#ifdef __WXMAC__
+ virtual bool Show(bool show = true) {
+ bool rv = wxWindow::Show(show);
+ GetParent()->Refresh(false);
+ return rv;
+ }
+#endif
+
void OnActivate(wxListEvent& WXUNUSED(event)) {
doubleClickAction(doubleClickActionData);
}
void ListBoxImpl::RegisterImage(int type, const char *xpm_data) {
wxMemoryInputStream stream(xpm_data, strlen(xpm_data)+1);
- wxBitmap bmp(wxImage(stream, wxBITMAP_TYPE_XPM));
+ wxImage img(stream, wxBITMAP_TYPE_XPM);
+ wxBitmap bmp(img);
if (! imgList) {
// assumes all images are the same size
// Convert using Scintilla's functions instead of wx's, Scintilla's are more
// forgiving and won't assert...
-
+
wxString stc2wx(const char* str, size_t len)
{
if (!len)
// TODO check NULL termination!!
-
return buffer;
}