Really update tooltip when wxToolBar::SetShortHelp() is called.

Changing a toolbar tool tooltip didn't work in wxOSX/Cocoa because the new
value was never propagated to the native control.

See #12362.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@66040 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2010-11-05 21:43:13 +00:00
parent 0b79709d3c
commit ed310c35b4

View File

@@ -218,7 +218,17 @@ public:
{
wxToolBarToolBase::SetLabel(label);
UpdateLabel();
}
}
virtual bool SetShortHelp(const wxString& help)
{
if ( !wxToolBarToolBase::SetShortHelp(help) )
return false;
UpdateLabel();
return true;
}
#endif // wxOSX_USE_NATIVE_TOOLBAR
private: