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
60
Adding MDI tab without activating?
posted

I am also using the UltraDockMgr, so perhaps this is an interaction of the two, but when I add a new pane to the dockmgr and set IsMdiChild = true, then it automatically becomes the active tab in the mdi manager. I don't want this, so I often set back the active tab after creating new tabs, however this sometimes fails, or leaves the UI in a half state where one of the two tabs may look visually selected, and the other is actually visible. One way to reproduce this is by setting Enabled = false on the form (and dock/mdi mgr) then adding views and trying to fixup afterwards. Result will be an in between state.

 Suggestions? Ideally I really just want to be able to add forms without activating, but further workarounds would be useful as well. Once I'm in the bad state, no calls on ultradockmgr or mdi mgr seem to fix it (begin/end update, stop/resume layout, repeatedly set the active tab, or event call activate on the mdi child that should be visible).

 Thanks,

Patrick

  • 1070
    posted

    Have you found a solution to prevent that the added tab will be activated?

    thanks and sincerely

    stefan

  • 44743
    posted

    Some of those bad states you are getting into could be bugs. If you have the time, I would recommend reporting them to the support group: http://ko.infragistics.com/gethelp.

    I believe the form is being selected just because it is a new mdi child form being added to the mdi parent. You can try to set the ActiveMdiChild of the parent form when doing your fixup instead of trying to change the active or selected tab.