wxWindow::SetFocus

void SetFocus(void)

This sets the window to receive keyboard input. The only panel item that will respond to this under XView is the wxText item and derived items.