Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
420
How to establish which pane is about to activate (if any) when another is deactivating?
posted

We are using the Dock Manager's PaneDeactivate event to run processes that must occur before the user can continue working on the next pane they have selected.

What I am finding is that when a dialog box is launched from the active pane the PaneDeactive event is firing, which I guess makes sense, however this means that the code we expect to run when switching panes is firing when we have not actually switched to another pane.

I was hoping to find an event such as the TabSelecting event which is raised by the Tabbed MDI Manager, which allows me to determine which tab I am leaving and which tab I am selecting, but there is no such event on the Dock Manager.

When the PaneDeactivate event fires, how can I establish that no other pane is actually about to be activated? In my scenario I have just opened a dialog box and will be returning to the tab that has just deactivated and so need to be able to prevent execution of the code that is only required when switching from one pane to another?

Thanks in advance,

Jim.

Parents Reply Children