From 520746acb5abef1a7387236fcece99566cf89ace Mon Sep 17 00:00:00 2001 From: =?utf8?q?V=C3=A1clav=20Slav=C3=ADk?= Date: Thu, 6 Mar 2008 19:28:51 +0000 Subject: [PATCH] deprecated wxWindow::SetHelpTextForId() git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@52363 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- include/wx/window.h | 10 +++++++--- src/common/wincmn.cpp | 2 ++ 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/include/wx/window.h b/include/wx/window.h index 3b39c5b321..7987f624ae 100644 --- a/include/wx/window.h +++ b/include/wx/window.h @@ -1150,9 +1150,13 @@ public: #if wxUSE_HELP // associate this help text with this window void SetHelpText(const wxString& text); - // associate this help text with all windows with the same id as this - // one - void SetHelpTextForId(const wxString& text); + +#if WXWIN_COMPATIBILITY_2_8 + // Associate this help text with all windows with the same id as this one. + // Don't use this, do wxHelpProvider::Get()->AddHelp(id, text); + wxDEPRECATED( void SetHelpTextForId(const wxString& text) ); +#endif // WXWIN_COMPATIBILITY_2_8 + // get the help string associated with the given position in this window // // notice that pt may be invalid if event origin is keyboard or unknown diff --git a/src/common/wincmn.cpp b/src/common/wincmn.cpp index 838be57cc7..5b3a22d1d8 100644 --- a/src/common/wincmn.cpp +++ b/src/common/wincmn.cpp @@ -1695,6 +1695,7 @@ void wxWindowBase::SetHelpText(const wxString& text) } } +#if WXWIN_COMPATIBILITY_2_8 // associate this help text with all windows with the same id as this // one void wxWindowBase::SetHelpTextForId(const wxString& text) @@ -1705,6 +1706,7 @@ void wxWindowBase::SetHelpTextForId(const wxString& text) helpProvider->AddHelp(GetId(), text); } } +#endif // WXWIN_COMPATIBILITY_2_8 // get the help string associated with this window (may be empty) // default implementation forwards calls to the help provider -- 2.45.2