wxFrame::Show without gaining focus

If you are using the main C++ distribution of wxWidgets, Feel free to ask any question related to wxWidgets development here. This means questions regarding to C++ and wxWidgets, not compile problems.
Post Reply
timgrant
In need of some credit
In need of some credit
Posts: 1
Joined: Sun Oct 26, 2008 8:29 pm

wxFrame::Show without gaining focus

Post by timgrant » Sun Oct 26, 2008 8:33 pm

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!

sfx81
Knows some wx things
Knows some wx things
Posts: 45
Joined: Sun Sep 28, 2008 12:11 pm

Post by sfx81 » Tue Oct 28, 2008 12:30 pm

I am not sure, but you should be able to call Show(true) and then call SetFocus() for your desired window afterwords !!!

Frank
Filthy Rich wx Solver
Filthy Rich wx Solver
Posts: 211
Joined: Sat Jan 01, 2005 6:19 pm

Post by Frank » Wed Oct 29, 2008 1:18 pm

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.

Aldarn
In need of some credit
In need of some credit
Posts: 1
Joined: Mon Jul 30, 2012 9:29 pm

Re:

Post by Aldarn » Mon Jul 30, 2012 9:34 pm

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!

Post Reply