I have several dock panels that can be undocked, and will be undocked for the sake of this post. Inside each is a TTreeView and a toolbar. I have to update a panel in another doc panel depending on which node of which treeview is selected. This is fine as long as the user changes the currently selected node in either of the tree views. If a user goes back and forth between the treeviews without changing the selected node, I cannot find an event that tells me the focus has changed so that I can update the panel based on which treeview. The OnEnter does not trigger for the treeviews nor for the dock panels. The Docksite OnChange also does not trigger. Nor does the OnMouseDown event in the doc panel, but does for the treeview.
Is there a way to know when a floating dock panel gets focus other than using the OnMouseDown event on every control within each dock panel?