added UnsetToolTip() which is also provided (as empty function) in wxUSE_TOOLTIPS==0 case unlike SetToolTip(NULL)

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@55268 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2008-08-25 23:19:04 +00:00
parent 82db3c3d9d
commit 410201d988
2 changed files with 28 additions and 7 deletions

View File

@@ -2399,8 +2399,16 @@ public:
//@{
/**
Attach a tooltip to the window.
See also: GetToolTip(),
wxToolTip
wxToolTip pointer can be @NULL in the overload taking the pointer,
meaning to unset any existing tooltips, however UnsetToolTip() provides
a more readable alternative to this operation.
Notice that these methods are always available, even if wxWidgets was
compiled with @c wxUSE_TOOLTIPS set to 0, but don't do anything in this
case.
@see GetToolTip(), wxToolTip
*/
void SetToolTip(const wxString& tip);
void SetToolTip(wxToolTip* tip);
@@ -2584,6 +2592,15 @@ public:
*/
static void UnreserveControlId(wxWindowID id, int count = 1);
/**
Unset any existing tooltip.
@since 2.9.0
@see SetToolTip()
*/
void UnsetToolTip();
/**
Calling this method immediately repaints the invalidated area of the window and
all of its children recursively while this would usually only happen when the