]> git.saurik.com Git - wxWidgets.git/commitdiff
deprecated wxWindow::SetHelpTextForId()
authorVáclav Slavík <vslavik@fastmail.fm>
Thu, 6 Mar 2008 19:28:51 +0000 (19:28 +0000)
committerVáclav Slavík <vslavik@fastmail.fm>
Thu, 6 Mar 2008 19:28:51 +0000 (19:28 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@52363 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

include/wx/window.h
src/common/wincmn.cpp

index 3b39c5b321494a86c1944432cf91408603b1f846..7987f624ae334a1baa651365328972408ff67e15 100644 (file)
@@ -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
index 838be57cc7ec464be1a302cc96b3afe7cbd65cf5..5b3a22d1d8ea93a73c381ea4bd1335275e368264 100644 (file)
@@ -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