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
1375
Closing dock pane causes MDI tab selection change
posted

I have a form containing an UltraDockManager and UltraTabbedMdiManager. I've also got a tool ribbon containing statebuttons related to the state of the dock pane (Hide, Floating, Auto-hide).

When the form runs, I open two mdi tabs. I select the second tab. If I then select the close button in the dock pane caption, the pane closes and the first mdi tab becomes selected.

If I reset the pane so it's in view again, select the second tab, but use my statebutton to hide the pane I get mixed results.

  • When the statebutton is checked, I call a method that uses the Close( ) function to hide the pane if the button is checked and the pane is visible.
  • If I do not change focus from the second MDI tab, and check the statebutton, the selected tab does not change. Tab 2 is still the active tab.
  • If I click in the dock pane caption to give it focus, then check the statebutton, the selected tab does change.

I tried adding the BeforePaneButtonClick event for the DockManager. If the Close button is clicked, instead of allowing the default behavour, I run the same method my statebutton click event ran and set e.Cancel to true. This closes the pane, but also changes the selected tab as if it were the default close button click.

 It seems that the problem occurs when the pane caption has focus.

 Any insight would be welcome!

JL

Parents
  • 44743
    posted

    It sounds like a bug. I would recommend submitting the issue to the support group: http://es.infragistics.com/gethelp. As a workaround, you can cache the ActiveMdiChild of the parent before calling your method. After calling your method, you can call Activate() on it to select it again.

Reply Children
No Data