Hi all,
I have a MDI scenario with some docking windows in the MDI frame, MDI child windows, and some popup windows, which are also owned by the MDI frame window.
And I have a main menu and some toolbars from the XPMenu namespace in my MDI frame, containing some commands (BarItem''s) which are context sensitive to the active window. This may be a docking, a MDI child or a popup window. So in the click event, I check which window contains the focus and delegate the command to this window.
With version 3.0.1.0 this worked fine. However, since I upgraded to version 3.3.0.0 (in order to get some bug fixes), this scenario does not longer work.
As soon as I click on the main menu or a toolbar button, the docking (if currently not docked) or the popup window looses the focus.
A second problem is if the docking window is docked and has the focus, to bring the focus to the MDI child window. Then, both windows looks aktivated, but the focus remains on the docked window.
To demonstrate this problems I try to attach a sample. This sample shows a MDI scenario with a floating docking window, a popup window, and one MDI child window, all displaying a "Hello World". Now try to bring the focus on each of it and press "Say Hello" on the toolbar which makes the hello flashing red. As you can see, you can''t get the docking or the popup window flashing, because they loose their focus.
How can I get this working? Is this behaviour a bug?
Thanks in advance,
Christian
LostFocus.zip