X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/abceee76ea4d642ccfd3cf91cc139a3fe2b471b7..e0a76d8d8a91d5a13c1fab7257aae4da8311f58d:/src/generic/tipdlg.cpp diff --git a/src/generic/tipdlg.cpp b/src/generic/tipdlg.cpp index 417a093903..33a019fc11 100644 --- a/src/generic/tipdlg.cpp +++ b/src/generic/tipdlg.cpp @@ -181,7 +181,7 @@ wxTipDialog::wxTipDialog(wxWindow *parent, text->SetFont(wxFont(18, wxSWISS, wxNORMAL, wxBOLD)); #endif // -// text->SetBackgroundColour(wxSystemSettings::GetSystemColour(wxSYS_COLOUR_BTNFACE)); +// text->SetBackgroundColour(wxSystemSettings::GetColour(wxSYS_COLOUR_BTNFACE)); m_text = new wxTextCtrl(this, -1, wxT(""), wxDefaultPosition, wxSize(200, 160), @@ -198,7 +198,13 @@ wxTipDialog::wxTipDialog(wxWindow *parent, #if defined(__WXMSW__) || defined(__WXPM__) wxIcon icon("wxICON_TIP"); #else + // XPM hack: make the arrays const + #define static static const + #include "wx/generic/tip.xpm" + + #undef static + wxIcon icon(tipIcon); #endif wxStaticBitmap *bmp = new wxStaticBitmap(this, -1, icon);