Binary compatible API fixes for menu label retrieval with and without
mnemonics/accelerators. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@48053 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -892,9 +892,19 @@ wxString wxMenuBar::GetLabelTop(
|
||||
{
|
||||
wxCHECK_MSG( nPos < GetMenuCount(), wxEmptyString,
|
||||
wxT("invalid menu index in wxMenuBar::GetLabelTop") );
|
||||
return m_titles[nPos];
|
||||
return wxStripMenuCodes(m_titles[nPos]);
|
||||
} // end of wxMenuBar::GetLabelTop
|
||||
|
||||
// Gets the original label at the top-level of the menubar
|
||||
wxString wxMenuBar::GetMenuLabel(size_t pos) const
|
||||
{
|
||||
wxCHECK_MSG( pos < GetMenuCount(), wxEmptyString,
|
||||
wxT("invalid menu index in wxMenuBar::GetMenuLabel") );
|
||||
|
||||
return m_titles[pos];
|
||||
}
|
||||
|
||||
|
||||
// ---------------------------------------------------------------------------
|
||||
// wxMenuBar construction
|
||||
// ---------------------------------------------------------------------------
|
||||
|
Reference in New Issue
Block a user