X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/70373b5a57223350e0fcc4968920f81463dc6125..376b18eac7e7868211a731d134e69bf06489642e:/src/generic/tipdlg.cpp diff --git a/src/generic/tipdlg.cpp b/src/generic/tipdlg.cpp index 7bd4d9ecc3..d9d19cd600 100644 --- a/src/generic/tipdlg.cpp +++ b/src/generic/tipdlg.cpp @@ -53,7 +53,7 @@ // constants // ---------------------------------------------------------------------------- -static const int wxID_NEXT_TIP = -100; // whatever +static const int wxID_NEXT_TIP = 32000; // whatever // ---------------------------------------------------------------------------- // private classes @@ -115,6 +115,7 @@ private: wxCheckBox *m_checkbox; DECLARE_EVENT_TABLE() + DECLARE_NO_COPY_CLASS(wxTipDialog) }; // ============================================================================ @@ -236,23 +237,23 @@ wxTipDialog::wxTipDialog(wxWindow *parent, m_text->SetFont(wxFont(14, wxSWISS, wxNORMAL, wxNORMAL)); #endif -#if defined(__WXPM__) +//#if defined(__WXPM__) // // The only way to get icons into an OS/2 static bitmap control // - wxBitmap vBitmap; +// wxBitmap vBitmap; - vBitmap.SetId(wxICON_TIP); // OS/2 specific bitmap method--OS/2 wxBitmaps all have an ID. - // and for StatBmp's under OS/2 it MUST be a valid resource ID. - - wxStaticBitmap* bmp = new wxStaticBitmap(this, -1, vBitmap); - -#else +// vBitmap.SetId(wxICON_TIP); // OS/2 specific bitmap method--OS/2 wxBitmaps all have an ID. +// // and for StatBmp's under OS/2 it MUST be a valid resource ID. +// +// wxStaticBitmap* bmp = new wxStaticBitmap(this, -1, vBitmap); +// +//#else wxIcon icon = wxArtProvider::GetIcon(wxART_TIP, wxART_CMN_DIALOG); wxStaticBitmap *bmp = new wxStaticBitmap(this, -1, icon); -#endif +//#endif // 2) put them in boxes