--
-- Schlake
How about, after catching an EVT_ACTIVATE event in a handler on any
frame, then using window.Raise() and window.SetFocus(), in a loop
through a list of the extant frames? Something like that. (.SetFocus
might only really work on an object that can accept focus...not
totally sure about that).
Where can you find these methods?:
http://docs.wxwidgets.org/stable/wx_wxwindow.html
(this is the wxWidgets docs, but I prefer this formatting)
Che
Well, I got some spectacular crashes!
I can't Focus() a frame, so that doesn't work. And moving one of the
windows causes infinite recursion. But moving the other windows is
fine.
So, I wrapped it in a test to see if it is already inside the callback
I made, and that fixes it. Raise()ing the window that is supposed to
have focus last causes it to have focus just like I want. But an
iconified window isn't popped up. What does wx call it's pop up
method? All I can find is to pop up a menu item.
-- Schlake
frame.Iconize(False)
See:
http://docs.wxwidgets.org/2.8/wx_wxtoplevelwindow.html#wxtoplevelwindowiconize
One way to find this is is you Google "wxFrame" and see there is no
method related to icons or such...so you try a higher level by looking
at the top part of the doc where it says, "Derived from" and then
you'd choose the first in that list--in this case, wxTopLevelWindow.
Then you may find the method you need.
Che