Posted 17 years ago
by Geoff Matt

I have a DockManager which contains 2 ToolWindows. I've subscribed to the WindowFocused event on the DockManager and, as expected, when I move focus from one window to another the event fires and my method is called.
However this seems to go awry when I change the state of on of the windows:
1. Move the focus to ToolWindow2
2. Dock ToolWindow2 within ToolWindow1, the WindowFocused event is fired as the focus has now changed to ToolWindow1, all good so far.
3. Return ToolWindow2 to a floating window, the DockManager shows that it still knows about both ToolWindows but when I click between ToolWindow1 and ToolWindow2 the WindowFocused event fails to fire. It seems as if ToolWindow2 has been unsubscribed from the dockmanager when it was docked (which is reasonable) but is not re-subscribed when it is returned to floating.
I'd appreciate any help, I'm using Actipro UI studio v2.0.0095
However this seems to go awry when I change the state of on of the windows:
1. Move the focus to ToolWindow2
2. Dock ToolWindow2 within ToolWindow1, the WindowFocused event is fired as the focus has now changed to ToolWindow1, all good so far.
3. Return ToolWindow2 to a floating window, the DockManager shows that it still knows about both ToolWindows but when I click between ToolWindow1 and ToolWindow2 the WindowFocused event fails to fire. It seems as if ToolWindow2 has been unsubscribed from the dockmanager when it was docked (which is reasonable) but is not re-subscribed when it is returned to floating.
I'd appreciate any help, I'm using Actipro UI studio v2.0.0095