wxMenu.FindItem() error

BlitzMax Forums/Brucey's Modules/wxMenu.FindItem() error

Nigel Brown(Posted 2011) [#1]
When I use m_menuItem71.FindItem(_("New")) which is a valid entry in the menu, I am returned the value -31999 which Is not the first 0th entry that I was expecting? the menu generation is done using wxCodeGen, and produces:

m_menuItem71 = New wxMenuItem.Create(m_menuFile, wxID_ANY, _("New"), "", wxITEM_NORMAL)


Nigel Brown(Posted 2011) [#2]
or maybe I have missunderstood something here as this works:

m_menuFile.Enable(m_menuFile.FindItem(_("New")),False)