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
155
Multiple Docked items not firing hidden event
posted
I have a situation where two floating dock panes are docked together. I then close the pair clicking the top right most X. I then only receive one call to the PaneHidden event. Shouldn't I get a message for each of the two panes or is there some way to determine what other components are being closed as result of this closure. I'm currently using version 2008.1. Any clues? Christiaan
  • 44743
    posted

    I think it depends on how they are docked. If they are docked as a tab group, only one control pane would have been visible when the group pane was closed, so only one control pane will have the PaneHidden event fired for it. You might want to try handling the BeforePaneButtonClick or AfterPaneButtonClick. If the PaneButton value of the event args is Close and the Pane is a DockableGroupPane, you can iterate the group's child panes to know which panes are closing. If the Pane is a DockableControlPane, only that pane will be closing.