Keyboard/OpenGl doesn't work until button is clicked.

Jonathan Haws Jonathan.Haws at sdl.usu.edu
Mon Jul 2 12:11:51 PDT 2007


I put in my GUI init function the following line:

mainWindow1->m_textCtrl_statusErrorMessages->SetFocus();

However, I still have the same problem.  If I click in that window, then the KB functions work just fine.  Any other ideas?

Jonathan R. Haws
Jonathan.Haws at sdl.usu.edu


-----Original Message-----
From: Robin Dunn [mailto:robin at alldunn.com]
Sent: Monday, July 02, 2007 1:05 PM
To: wx-users at lists.wxwidgets.org
Subject: Re: Keyboard/OpenGl doesn't work until button is clicked.


Jonathan Haws wrote:
> My GUI is working great, other than an issue that is annoying.
> 
> The keyboard commands that I have implemented don't work until I click one of the buttons in the GUI.  It can be any button, it just needs to be clicked and process something before the KB will work.  It is really annoying and I have checked my function to see what it may be, but the GUI doesn't seems to accept any keyboard input until a control is clicked with the mouse.
> 
> Any ideas?

Try explicitly setting the focus to one of your controls after the frame 
is shown.


-- 
Robin Dunn
Software Craftsman
http://wxPython.org  Java give you jitters?  Relax with wxPython!


---------------------------------------------------------------------
To unsubscribe, e-mail: wx-users-unsubscribe at lists.wxwidgets.org
For additional commands, e-mail: wx-users-help at lists.wxwidgets.org





More information about the wx-users mailing list