knowledge-database (beta)

Current group: comp.soft-sys.wxwindows

wxGTK: SetFocus after a wxMessageDialog not working

wxGTK: SetFocus after a wxMessageDialog not working  
Edward Macnaghten
From:Edward Macnaghten
Subject:wxGTK: SetFocus after a wxMessageDialog not working
Date:Sat, 22 Jan 2005 01:52:53 +0000 (UTC)
Please forgive me if this has been discussed and sorted before, just
point me to the appropriate link.

SetFocus() does not work if you call it just before or after opening a
wxMessageDialog. I have tried EVERYTHING (well nearly) trying to get
this to function - even getting my hands dirty on the internals and
calling gtk_widget_grab_focus(Window->GetHandle()) as well as wxWidget's
SetFocus(), but still to no avail. Ihave tried defering the set focus
and doing it as a result of an "AddPendingEvent" - no good!

The code works beutifully if the wxMessageDialog is not called - Focus
goes where I want it - It also works perfectly on the wxMSW port (2000
and 2003) but simply refuses to in wxGTK.

Has anyone else had experience of this?

Eddy


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

Copyright © 2006 knowledge-database   -   All rights reserved