Page 1 of 1

wxFrame::Show without gaining focus

Posted: Sun Oct 26, 2008 8:33 pm
by timgrant
Can anyone help me with a cross-platform way to show a wxframe in a way in which it does not receive focus when displayed.

Thanks!

Posted: Tue Oct 28, 2008 12:30 pm
by sfx81
I am not sure, but you should be able to call Show(true) and then call SetFocus() for your desired window afterwords !!!

Posted: Wed Oct 29, 2008 1:18 pm
by Frank
I had the same problem some time ago (see http://forums.wxwidgets.org/viewtopic.p ... ight=focus)

The answer was to use the flag wxFRAME_TOOL_WINDOW. That worked for me. On Windows that is. Don't know how it behaves on unix.

Re:

Posted: Mon Jul 30, 2012 9:34 pm
by Aldarn
Frank wrote:I had the same problem some time ago (see http://forums.wxwidgets.org/viewtopic.p ... ight=focus)

The answer was to use the flag wxFRAME_TOOL_WINDOW. That worked for me. On Windows that is. Don't know how it behaves on unix.
This worked for me using perl 5.8.6 and some old version of Wx on centos EL6... thanks!