int posTab = label.Find(wxT('\t'));
if ( posTab == wxNOT_FOUND )
{
- wxLogDebug(wxT("Invalid menu label: no accelerators"));
return false;
}
m_id = id;
m_kind = kind;
if (m_id == wxID_ANY)
- m_id = wxNewId();
+ m_id = wxWindow::NewControlId();
if (m_id == wxID_SEPARATOR)
m_kind = wxITEM_SEPARATOR;