wxFrame::Command

void Command(int id)

Simulate a menu command. id is the identifier for a menu item.