Show labels for controls in wxOSX/Carbon toolbars.
Add a call to HIToolbarItemSetLabel(). Closes #11885. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63830 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -1322,6 +1322,10 @@ bool wxToolBar::Realize()
|
||||
wxFAIL_MSG("Reference count of native tool was illegal before removal");
|
||||
}
|
||||
wxASSERT( IsValidControlHandle(tool->GetControl()->GetPeer()->GetControlRef() )) ;
|
||||
|
||||
wxString label = tool->GetLabel();
|
||||
if ( !label.empty() )
|
||||
HIToolbarItemSetLabel( hiItemRef, wxCFStringRef(label, GetFont().GetEncoding()) );
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user