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:
@@ -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:
|
||||
|
Reference in New Issue
Block a user