// For compilers that support precompilation, includes "wx.h".
#include "wx/wxprec.h"
+#include <ctype.h>
+
#ifdef __BORLANDC__
#pragma hdrstop
#endif
// Finds the item id matching the given string, -1 if not found.
int wxMenuBase::FindItem(const wxString& text) const
{
- wxString label = wxMenuItem(NULL, wxID_SEPARATOR, text).GetLabel();
+ wxString label = wxMenuItem::GetLabelFromText(text);
for ( wxMenuItemList::Node *node = m_items.GetFirst();
node;
node = node->GetNext() )