deprecated wxWindow::SetHelpTextForId()

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@52363 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Václav Slavík
2008-03-06 19:28:51 +00:00
parent 647d7ce90b
commit 520746acb5
2 changed files with 9 additions and 3 deletions

View File

@@ -1150,9 +1150,13 @@ public:
#if wxUSE_HELP #if wxUSE_HELP
// associate this help text with this window // associate this help text with this window
void SetHelpText(const wxString& text); void SetHelpText(const wxString& text);
// associate this help text with all windows with the same id as this
// one #if WXWIN_COMPATIBILITY_2_8
void SetHelpTextForId(const wxString& text); // 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 // 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 // notice that pt may be invalid if event origin is keyboard or unknown

View 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 // associate this help text with all windows with the same id as this
// one // one
void wxWindowBase::SetHelpTextForId(const wxString& text) void wxWindowBase::SetHelpTextForId(const wxString& text)
@@ -1705,6 +1706,7 @@ void wxWindowBase::SetHelpTextForId(const wxString& text)
helpProvider->AddHelp(GetId(), text); helpProvider->AddHelp(GetId(), text);
} }
} }
#endif // WXWIN_COMPATIBILITY_2_8
// get the help string associated with this window (may be empty) // get the help string associated with this window (may be empty)
// default implementation forwards calls to the help provider // default implementation forwards calls to the help provider