Set the tooltip for generic wxToolBar tools under wxOSX/Cocoa.
When using non-native toolbar, set the tooltip for tools m_controlHandle. Closes #12362. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@69951 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -192,6 +192,10 @@ public:
|
|||||||
if ( IsButton() )
|
if ( IsButton() )
|
||||||
[(NSButton*)m_controlHandle setTitle:l.AsNSString()];
|
[(NSButton*)m_controlHandle setTitle:l.AsNSString()];
|
||||||
|
|
||||||
|
if ( m_controlHandle )
|
||||||
|
{
|
||||||
|
[m_controlHandle setToolTip:sh.AsNSString()];
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void Action()
|
void Action()
|
||||||
|
Reference in New Issue
Block a user