//
// Find the (new) accel for this item
//
- wxAcceleratorEntry* pAccel = wxAcceleratorEntry::Create(pItem->GetText());
+ wxAcceleratorEntry* pAccel = wxAcceleratorEntry::Create(pItem->GetItemLabel());
if (pAccel)
pAccel->m_command = pItem->GetId();
//
rItem.afStyle |= MIS_TEXT;
}
- pData = (char*) pItem->GetText().wx_str();
+ pData = (char*) pItem->GetItemLabel().wx_str();
}
if (nPos == (size_t)-1)
wxMenuItem* wxMenu::DoAppend( wxMenuItem* pItem )
{
- wxCHECK_MSG( pItem, NULL, _T("NULL item in wxMenu::DoAppend") );
+ wxCHECK_MSG( pItem, NULL, wxT("NULL item in wxMenu::DoAppend") );
bool bCheck = false;
}
else
{
- wxFAIL_MSG( _T("where is the radio group start item?") );
+ wxFAIL_MSG( wxT("where is the radio group start item?") );
}
}
}
Refresh();
} // end of wxMenuBar::EnableTop
-void wxMenuBar::SetLabelTop(
+void wxMenuBar::SetMenuLabel(
size_t nPos
, const wxString& rLabel
)
wxLogLastError(wxT("ModifyMenu"));
}
Refresh();
-} // end of wxMenuBar::SetLabelTop
+} // end of wxMenuBar::SetMenuLabel
-wxString wxMenuBar::GetLabelTop(
+wxString wxMenuBar::GetMenuLabel(
size_t nPos
) const
{
wxCHECK_MSG( nPos < GetMenuCount(), wxEmptyString,
- wxT("invalid menu index in wxMenuBar::GetLabelTop") );
+ wxT("invalid menu index in wxMenuBar::GetMenuLabel") );
return m_titles[nPos];
-} // end of wxMenuBar::GetLabelTop
+} // end of wxMenuBar::GetMenuLabel
// ---------------------------------------------------------------------------
// wxMenuBar construction
,m_vAccelTable.GetHACCEL()
,(HWND)pFrame->GetFrame()
))
+ {
wxLogLastError(wxT("WinSetAccelTable"));
+ }
#endif // wxUSE_ACCEL
} // end of wxMenuBar::Attach