Posted 20 years ago by MH - California
Avatar
What is the recommended way to be notified of changes to the focused tool window? There does not appear to be an event similar to DWManager's ActiveDocumentChanged.

The ToolWindowActivated was kind of confusing in that regard, since it sounds right but isn't really relevant to focus tracking.

In addition, does it make sense to have the ActiveDocumentChanged event actually supply event arguments with both the prior and current active document windows? It would be convenient to not have to maintain that ourselves.

Thanks for any tips,
Mark

Comments (1)

Posted 20 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar
Thanks for the suggestions Mark. I'll add them to our TODO list.

ToolWindowActivated is used to determine when a tool window becomes "active" in the layout meaning that it is no longer hidden. It doesn't mean that it has focus.

We currently have on our TODO list to make an event when a tool window gets focus. For now if you are using UserControls as tool window child controls you may simply need to keep track in the OnEnter of each of them.


Actipro Software Support

The latest build of this product (v2.0.0208) was released 19 years ago, which was after the last post in this thread.