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:
Vadim Zeitlin
2010-04-02 19:30:29 +00:00
parent 2318a5d74c
commit bd044e27b3

View File

@@ -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()) );
}
}