Posted 19 years ago
by Kevin Blakeley

I have an issue that I was trying to work through in my application and was able to duplicate the problem I was seeing in the c# test application as well. What I am trying to do is track the last clicked TabbedMdiWindow, regardless of if it was a tool window or a tabbed document. I track this myself using the WindowFocused event, so that when each window is clicked I save off the last one that was clicked. All of this works okay. Here is where it breaks down.
- document1.txt is a tabbed document
- Toolwindow properties and events are dockable windows that are NOT docked
- when I click the document1.txt window it is the active TabbedMdiWindow
- when I click the toolwindow properties window, its the active TabbedMdiWindow
- When I click the "Window" menu item, the active TabbedMdiWindow goes back to document1.txt
What I would expect to see, is to see it work like visual studio such that I would be able to click on the window menu item and the window properties such as "floating", "dockable", "tabbed document", etc would be available for the toolwindows properties window since that was the last one I had clicked. This is not the case since focus is changed back to the document1.txt window.
Is this by design? Is there a way around this behavior?
Thanks
Kevin
- document1.txt is a tabbed document
- Toolwindow properties and events are dockable windows that are NOT docked
- when I click the document1.txt window it is the active TabbedMdiWindow
- when I click the toolwindow properties window, its the active TabbedMdiWindow
- When I click the "Window" menu item, the active TabbedMdiWindow goes back to document1.txt
What I would expect to see, is to see it work like visual studio such that I would be able to click on the window menu item and the window properties such as "floating", "dockable", "tabbed document", etc would be available for the toolwindows properties window since that was the last one I had clicked. This is not the case since focus is changed back to the document1.txt window.
Is this by design? Is there a way around this behavior?
Thanks
Kevin